Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Do you know any tool that monitors apache logs for suspicious actions (for example, several blocks by mod_security from one IP) and after it blocks this IP using .htaccess?

share|improve this question
Try csf hope this will help cause it blocks the ip for offensive access against mod_security but those IP will blocked in firewall not in htaccess – Pratap Dec 27 '12 at 14:36

You can take a look at fail2ban. Not sure if there is an action to ban via .htaccess, but that can be added in -- if you don't want to ban via iptables.

share|improve this answer

Your Answer


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.