limit_req per subnet?

lists at lists at
Thu Dec 15 08:11:41 UTC 2016

This is an interesting bit of code. However if you are being ddos-ed, this just eliminates nginx from replying. It isn't like nginx is isolated from the attack. I would still rather block the IP at the firewall and prevent nginx fr‎om doing any action. 

The use of $bot_agent opens up a lot of possibilities of the value can be fed to the log file.
  Original Message  
From: shiz
Sent: Wednesday, December 14, 2016 5:24 PM
To: nginx at
Reply To: nginx at
Subject: Re: limit_req per subnet?

I've inplemented something based on

Works perfectly fine for me.

Posted at Nginx Forum:,271483,271535#msg-271535

nginx mailing list
nginx at

More information about the nginx mailing list