Tag: security

How to protect a folder by IP address in Nginx

June 20th, 2009, 1 Comment

To protect a folder by IP address in nginx is fairly simple, see the example below that demonstrates only allowing access to the /protected folder for people in the 192.168.0.* network.
server {
….
location /protected {
allow 192.168.0.0/24;
deny all;
}

}

Feed

http://www.mendable.com / security