I have the following situation:
On some days Trackback-Spambots target one of my websites and with their post-requests create gigabytes of incoming (!) traffic on a single day (I measured up to 9.3 GB by now). I habe fail2ban installed and want it to ban the corresponding ips, but unfortunately I don't know much about regular expressions and because I use ISPConfig on my server, my apache's log files don't have the standard format.
This is ISPConfig's apache2 log format:
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
This is an example entry in the log. To-be-blocked entries can be recognized by the UserAgent "TrackBack/1.02":
www.mydomain.tld||||459||||123.123.123.123 - - [05/Mar/2007:14:39:21 +0100] "POST /123.html/trackback/ HTTP/1.0" 301 459 "http://www.mydomain.tld/123.html/trackback" "TrackBack/1.02"
The fail2ban apache documentation is very short:
http://www.fail2ban.org/wiki/index.php/Apache
Once a solution has been found, I'm going to update some blog and wiki entries to provide it to the community.
Regards,
al
Recent comments
9 hours 36 min ago
12 hours 4 min ago
23 hours 58 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 13 hours ago
1 day 22 hours ago
2 days 18 min ago
2 days 8 hours ago
2 days 9 hours ago