File: //etc/fail2ban/filter.d/apache-custom.conf
# Fail2Ban configuration file
#
# Regexp to catch known spambots and software alike. Please verify
# that it is your intent to block IPs which were driven by
# above mentioned bots.
[Definition]
#[Sat Oct 05 05:28:37.647318 2024] [autoindex:error] [pid 579765:tid 139789458183936] [client 129.226.193.16:0] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.
#php,index.php5,index.php7,index.php8) found, and server-generated directory index forbidden by Options directive
#failregex = ^<HOST> -.*"(GET|POST|HEAD).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
failregex = ^.*autoindex:error.*client <HOST>.* Cannot serve directory \/var\/www\/html\/.*by Options directive$
ignoreregex =
datepattern =
# DEV Notes:
# List of bad bots fetched from http://www.user-agents.org
# Generated on Thu Nov 7 14:23:35 PST 2013 by files/gen_badbots.
#
# Author: Yaroslav Halchenko