# Fail2Ban configuration file
#
# Author: Geoff Stratton
#
# $Revision$
#
 
[Definition]
 
docroot = /var/www/html
badbots = search|sql|mysql|myadmin|phpmyadmin
 
# Option:   failregex
# Notes:    Regexp to match often probed phpmyadmin/mysql paths.
# Values:   TEXT
 
failregex = [[]client <HOST>[]] File does not exist: %(docroot)s/(?:%(badbots)s)
 
# Option:  ignoreregex
# Notes.:  regex to ignore. If this regex matches, the line is ignored.
# Values:  TEXT
#
ignoreregex =

Read more at http://www.geoffstratton.com/use-fail2ban-block-bot-attacks#TiXVMlLVQcziDsCP.99
