How to block an IP
Igor Sysoev
is at rambler-co.ru
Wed Apr 15 23:13:52 MSD 2009
On Wed, Apr 15, 2009 at 09:06:14PM +0200, Robert Gabriel wrote:
> Robert Gabriel wrote:
> > Blocking an Ip address should be done like this?!
> >
> > Allow from all
> > Deny from 59.56.109.34
> >
> > Thanks!
>
> Sorry, I mean:
>
> location / {
> allow all;
> deny 59.56.109.34;
> ...
> }
No, nginx stops at the first matching rule, therefore:
deny 59.56.109.34;
deny ...
deny ...
deny ...
allow all;
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list