On daily basis I see Apache log full of requests initiated by different vulnerability scanner apps. Those hundreds of requests from usually same IP addresses not only makes the log dirty but also uses some server resources.As I do not have any PHP nor CGI-BIN scripts on my Apache, I would like to use fail2ban to ban all those IP addresses on a first request, for a certain amount of time.Does any one have such ready-to-go fail2ban configuration?
How to use fail2ban to ban all php and cgi-bin requests
apache httpd;fail2ban