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:

/etc/fail2ban/filter.d/apache-antibot.conf

/etc/fail2ban/jail.conf

[apache-antibot-webserver-xx]
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