I have a server running Debian, and periodically it gets weak DDoS attacks.

Usually it's enough to stricken nginx config like setting up limit_req, but it gives normal users trouble viewing image gallery, so I can't just leave limit enabled at all times.

So, I've thought, is there some way for nginx to change it's behaviour based on current server load? Setting up limits, when server is under heavy load, and removing them when this period ends?

link|improve this question
It might be simpler and more effective to block that at a firewall level. For instance, using IPTables' recent module to block any users accessing making more than a specified number of requests per minute (or several minutes) for some time span (e.g. 10 minutes). – cyberx86 Dec 4 '11 at 1:50
Thank you, I'll look into that. – Nameless Dec 5 '11 at 8:49
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.