How to use cookie for request/conection limiting

Igor Sysoev is at rambler-co.ru
Fri Oct 30 09:30:11 MSK 2009


On Thu, Oct 29, 2009 at 08:20:57PM -0400, piavlo wrote:

> Hi,
> I'd like to limit connections and/or request based on cookies
> 
> Is it possible to do it with something like this:
> 
> limit_req_zone  $cookie_somename  zone=one:10m   rate=1r/s;
> 
> ?
> 
> The only thing I've found is http://hg.mperillo.ath.cx/nginx/mod_parsed_vars/file/70df16b39e79/README
> but this module has not been updated for 2 years.

You may use $cookie_somename since 0.7.22 and 0.6.36.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list