Welcome! Log In Create A New Profile

Advanced

Deny ips, and pick ips from a file.

Quintin Par
October 11, 2012 01:58AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Deny ips, and pick ips from a file.

Quintin Par October 11, 2012 01:58AM

Re: Deny ips, and pick ips from a file.

Anton Yuzhaninov October 11, 2012 06:04AM

Re: Deny ips, and pick ips from a file.

Wolfsrudel October 11, 2012 06:55AM

Re: Deny ips, and pick ips from a file.

António P. P. Almeida October 11, 2012 07:04AM

Re: Deny ips, and pick ips from a file.

Quintin Par October 13, 2012 01:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready