Rate Limiting in NGINX
February 22, 2014
I had trouble with a bot, coming from multiple ip addresses, that was hammering my website. NGINX allows you to easily rate limit such access, returning a 503 if the rate is exceeded.
In my nginx config I added the two limit_req lines shown here:
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; server …