Deny ips, and pick ips from a file.

Quintin Par quintinpar at
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


  # allow anyone in


  # 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list