How to block an IP

Blocking an Ip address should be done like this?!

Allow from all
Deny from 59.56.109.34

Thanks!

Robert G. 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;

}

On Wed, Apr 15, 2009 at 09:06:14PM +0200, Robert G. wrote:

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;

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs