HTTPLimitRequest Module: Whitelisting IPs

Hello,

I am trying to use the HTTPLimitRequests Module to prevent excessive
usage of resources on our server. However we also have some spikes which
seem to originate from search bots or other allowed usage. We want to
keep these requests from known IP adresses untouched and limit all other
requests.

Is there a way to whitelist IPs using this module?

Thank you for your answer!

Best regards,
Jonas Kaufmann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,185127,185127#msg-185127

Maybe you can use the map module(http://wiki.nginx.org/HttpMapModule) in
front of the limit request module.

2011/3/23 j0nes2k [email protected]

Were you able to figure out a way to do this? I am in the same
situation, I would like to whitelist internal IPs as well as some bots.
Our limit_req is in the same block as a fastcgi backend, so all requests
that hit fastcgi go through this block. I tried the if ($condition)
{limit_req} but this wasn’t allowed by nginx.

j0nes2k Wrote:

Is there a way to whitelist IPs using this module?

Thank you for your answer!

Best regards,
Jonas Kaufmann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,185127,187001#msg-187001

Hello,

I have not tried this yet, however I have found another post with a
possible solution:
http://serverfault.com/questions/177461/how-to-rate-limit-in-nginx-but-including-excluding-certain-ip-addresses

Please let us know if you succeeded in whitelisting IPs, and I will also
report back if I find a working solution.

Best regards,
Jonas Kaufmann

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,185127,187064#msg-187064

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs