how to get rid of all those HTTP bots with fail2ban

You want to get rid of all these annoying requests for myphpadmin and the like in your apache webserver?

Here is how i do it:



enabled = true
filter = apache-antibot
port = http,https
logpath = /var/lib/vservers/webserver-xx/var/log/apache2/*access.log
# try to target only automated bots
maxretry = 10
# find also slow bots that try to hide in the log files
findtime = 432000
# keep em long away if found
bantime  = 864000