Re: Limit connection to specific location

2013-08-14 Thread Valentin V. Bartenev
On Wednesday 14 August 2013 15:54:50 Jaap van Arragon wrote: > 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) The number of simultaneous requests is limited by the

Re: Limit connection to specific location

2013-08-14 Thread Jaap van Arragon
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. Regards

Re: Limit connection to specific location

2013-08-13 Thread Valentin V. Bartenev
On Tuesday 13 August 2013 17:12:11 Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't understand > how to limit the amount of connection from a s

Re: Limit connection to specific location

2013-08-13 Thread Bob S.
Maybe you should tell us what yo are trying to do in more detail. If all you are trying to do is rate limit, there are easier ways to do it. On Tue, Aug 13, 2013 at 1:39 PM, B.R. wrote: > Hello, > > On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon < > j.vanarra...@lukkien.com> wrote: > >> Hell

Re: Limit connection to specific location

2013-08-13 Thread B.R.
Hello, On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't > understand how to limit the amount of connection fro

Re: Limit connection to specific location

2013-08-13 Thread Bob S.
One dirty way to do it would be to use a program to monitor the connections that access that location and then, when 20 connections in an hour have occurred, have the config file swapped out and replaced with another that does not have that location block. There is a way to get Nginx to reread it's

Re: Limit connection to specific location

2013-08-13 Thread Pablo J. Villarruel
Good question! On Tue, Aug 13, 2013 at 10:12 AM, Jaap van Arragon wrote: > Hello, > > I'am looking for a way to limit the number of connection in one hour to a > location named /api/ > > I've looked at the ngx_http_limit_conn_module module but I don't > understand how to limit the amount of con

Limit connection to specific location

2013-08-13 Thread Jaap van Arragon
Hello, I'am looking for a way to limit the number of connection in one hour to a location named /api/ I've looked at the ngx_http_limit_conn_module module but I don't understand how to limit the amount of connection from a specific ip address per hour. For example: ip address 33.33.33.33 can onl