Deny ips, and pick ips from a file.
Quintin Par
quintinpar at gmail.com
Thu Oct 11 05:50:17 UTC 2012
Hi all,
I need to deny users by ip. I assume we need to do something like this
location / {
# block one workstation
deny 192.168.1.1;
# allow anyone in 192.168.1.0/24
allow 192.168.1.0/24;
# drop rest of the world
deny all;
}
But how can I pass on the list of ips from a file? A file which will get
udated from time to time.
Can I pass the ips something like this
deny /tmp/iplist.txt;
Will Nginx refresh the ip list in memory if the file gets changed?
-Quintin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121010/bdcc9edd/attachment.html>
More information about the nginx
mailing list