<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Hello,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 13, 2013 at 9:12 AM, Jaap van Arragon <span dir="ltr"><<a href="mailto:j.vanarragon@lukkien.com" target="_blank">j.vanarragon@lukkien.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div style="font-size:14px;font-family:Calibri,sans-serif">
Hello,</div><div style="font-size:14px;font-family:Calibri,sans-serif"><br></div><div style="font-size:14px;font-family:Calibri,sans-serif">I'am looking for a way to limit the number of connection in one hour to a location named /api/</div>
<div style="font-size:14px;font-family:Calibri,sans-serif"><br></div><div>I've looked at the <span style><font color="#333333"><span style="line-height:18px;white-space:pre-wrap">ngx_http_limit_conn_module module but I</span></font> don't understand how to limit the amount of connection from a specific ip address per hour.</span></div>
<div><br></div><div>For example: ip address 33.33.33.33 can only make 20 connections in one hour to the url /api/</div><div><br></div></div></blockquote><div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">
Limiting connections rate sounds typically like a job that must be done by some firewall to me...<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">Have you tried to look after iptables and its 'recent' module?<br>
<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div></div><div>We use nginx as a loadbalancer/proxy.</div>
<div><br></div><div>Does somebody has a example for this?</div><div><br></div><div>Thanks.</div><div><br></div><div>Regards.</div><span class="HOEnZb"><font color="#888888"><div>Jaap <br><br></div><font face="Calibri,sans-serif"><span></span></font></font></span></div>
</blockquote></div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>