Limit connection to specific location
Jaap van Arragon
j.vanarragon at lukkien.com
Wed Aug 14 11:54:50 UTC 2013
I've tried the limit_req but the problem is that it limits the
simultaneous requests and I want to limit the total request per hour from
one ip (not necessarily simultaneously)
We've fixed it in the application now, there seemed to be a django view
module for it.
Thanks for the options.
On 8/13/13 9:09 PM, "Valentin V. Bartenev" <vbart at nginx.com> wrote:
>On Tuesday 13 August 2013 17:12:11 Jaap van Arragon wrote:
>> I'am looking for a way to limit the number of connection in one hour to
>> location named /api/
>> I've looked at the ngx_http_limit_conn_module module but I don't
>> how to limit the amount of connection from a specific ip address per
>> For example: ip address 126.96.36.199 can only make 20 connections in one
>> hour to the url /api/
>> We use nginx as a loadbalancer/proxy.
>> Does somebody has a example for this?
>You can try to use the limit_req module:
>But the minimum limit you can currently set is 1 request per minute.
> wbr, Valentin V. Bartenev
>nginx mailing list
>nginx at nginx.org
More information about the nginx