Block x requests per second

Is there a way to block a host if it makes too many requests per second?

Thanks!

Hello!

On Fri, Jan 07, 2011 at 03:43:31PM -0600, Team AMP wrote:

Is there a way to block a host if it makes too many requests per second?

Limit req module allows to delay/reject requests which are above
certain threshold, see here:

http://wiki.nginx.org/HttpLimitReqModule

There are not way to block hosts permanently after exceeding
threshold. Usual aproach is to use fail2ban or something like to
block them on your firewall if it keeps exceeding limit_req
thresholds (e.g. based on limit_req erros in error_log.

Maxim D.

For now, I think NginX can only limit by bandwidth usage (CMIIW)
If you want to limit by request(s) per second, you can use 3rd party
program
(eg: firewall)

View this message in context:
http://nginx.2469901.n2.nabble.com/block-x-requests-per-second-tp5900967p5902966.html
Sent from the nginx mailing list archive at Nabble.com.