Welcome! Log In Create A New Profile

Advanced

Re: block x requests per second

Maxim Dounin
January 07, 2011 08:36PM
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 Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

block x requests per second

testbot January 07, 2011 04:46PM

Re: block x requests per second

Maxim Dounin January 07, 2011 08:36PM

Re: block x requests per second

antituhan January 08, 2011 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
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