Limit connection to specific location
reallfqq-nginx at yahoo.fr
Tue Aug 13 17:39:25 UTC 2013
On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon
<j.vanarragon at lukkien.com>wrote:
> 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 184.108.40.206 can only make 20 connections in one
> hour to the url /api/
> Limiting connections rate sounds typically like a job that must be done
by some firewall to me...
Have you tried to look after iptables and its 'recent' module?
We use nginx as a loadbalancer/proxy.
> Does somebody has a example for this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx