To test your configs, check your apache-badbots.conf and find the failregex.
Mine looks like
Code:
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
Chose one entry from "badbots" and run fail2ban-regex with a test-string against your apache-badbots.conf:
Code:
fail2ban-regex '1.2.3.4 - - [12/Feb/2013:10:53:59 +0100] "GET / HTTP/1.1 200" 39460 "-" "autoemailspider"' /etc/fail2ban/filter.d/apache-badbots.conf
You should get something like "Success, the total number of match is 1"
Recent comments
7 hours 58 min ago
14 hours 39 min ago
18 hours 29 min ago
20 hours 8 min ago
1 day 4 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 22 hours ago
1 day 23 hours ago