Welcome! Log In Create A New Profile

Advanced

Re: Limit IP req/s excl bots

Maxim Dounin
September 18, 2013 09:58AM
Hello!

On Wed, Sep 18, 2013 at 11:15:54PM +0930, SplitIce wrote:

> I also think I found that 0 length keys wont be stored. This isn't in the
> documentation but if I understand the code correctly they aren't, is this
> correct?

It's in the documentation, see http://nginx.org/r/limit_req_zone:

: ... The key is any non-empty value of the specified variable (empty
: values are not accounted). ...

> On Wed, Sep 18, 2013 at 11:06 PM, SplitIce <mat999@gmail.com> wrote:
>
> > Does anyone know if there is any truth to this blog post:
> > http://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/
> >
> > And if so where about in the code its implemented? I was trying to find
> > out if its possible to use a map to control limit req/s limits but I still
> > cant find the code that does what that article says is possible.

The configuration provided in the post linked doesn't do any
whitelisting. Though it's mostly trivial to introduce one using a
map{}.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Limit IP req/s excl bots

splitice September 18, 2013 09:38AM

Re: Limit IP req/s excl bots

splitice September 18, 2013 09:48AM

Re: Limit IP req/s excl bots

Valentin V. Bartenev September 18, 2013 09:56AM

Re: Limit IP req/s excl bots

Maxim Dounin September 18, 2013 09:58AM

Re: Limit IP req/s excl bots

splitice September 18, 2013 08:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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