Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It seems that some script kiddie started attacking one of my servers by trying to fetch all sorts of URLs that may be related to Wordpress vulnerabilities. I don't even have WP installed on the server, and all these cause is a bunch of 404 errors.

Since I have my server set up to email me for each 404 error (which until now, for years, has worked very well to catch an occasional broken link), these attacks not only put load on the server but also flood my inbox.

Is there some reliable software that can block IPs that display a malicious behavior? Hopefully, at the iptables or nginx level...

Even better, is there some service that plugs into a community database that can preemptively block an IP that has recently been detected by another server as having malicious activity originating from it?

share|improve this question
    
possible duplicate of Where to find and how to block blacklisted IPs and proxies? –  mailq Oct 2 '11 at 15:07
    
Fail2Ban with a bit of customisation could do the job. It would block IPs at the iptables level. –  nrolans Oct 2 '11 at 15:21
add comment

1 Answer 1

up vote 6 down vote accepted

You can use fail2ban to monitor your logs and create custom iptables rules that deny access from specific hosts - you should find this in your distro's repository.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.