dynamically block ips?

Dick Middleton dick at fouter.net
Wed Jul 27 08:38:54 UTC 2011


On 07/27/11 09:34, Ronald Johnson wrote:

> What I would like to do is to block their IP:s instantly, my thinking so far is:
> detect them in my php scripts,
> write their IP to nginx blocked-ips config file,
> and tell nginx to reload the config files.

Have a look at fail2ban (http://www.fail2ban.org/).

Typically it monitors log files and responds by changing iptables rules.

Dick



More information about the nginx mailing list