mirror of https://github.com/fail2ban/fail2ban
Created botsearch-common.conf
File contains variables used in -botsearch filterspull/933/head
parent
f8fe165cd2
commit
18778d9174
|
@ -0,0 +1,19 @@
|
||||||
|
# Generic configuration file for -botsearch filters
|
||||||
|
|
||||||
|
[Init]
|
||||||
|
|
||||||
|
# Block is the actual non-found directories to block
|
||||||
|
block = \/?(<webmail>|<phpmyadmin>|<wordpress>|cgi-bin|mysqladmin)[^,]*
|
||||||
|
|
||||||
|
# These are just convient definitions that assist the blocking of stuff that
|
||||||
|
# isn't installed
|
||||||
|
webmail = roundcube|(ext)?mail|horde|(v-?)?webmail
|
||||||
|
|
||||||
|
phpmyadmin = (typo3/|xampp/|admin/|)(pma|(php)?[Mm]y[Aa]dmin)
|
||||||
|
|
||||||
|
wordpress = wp-(login|signup)\.php
|
||||||
|
|
||||||
|
# DEV Notes:
|
||||||
|
# Taken from apache-botsearch filter
|
||||||
|
#
|
||||||
|
# Author: Frantisek Sumsal
|
|
@ -1,6 +1,11 @@
|
||||||
# Fail2Ban filter to match web requests for selected URLs that don't exist
|
# Fail2Ban filter to match web requests for selected URLs that don't exist
|
||||||
#
|
#
|
||||||
|
|
||||||
|
[INCLUDES]
|
||||||
|
|
||||||
|
# Load regexes for filtering
|
||||||
|
before = botsearch-common.conf
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST) \/<block> \S+\" 404 .+$
|
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST) \/<block> \S+\" 404 .+$
|
||||||
|
@ -9,20 +14,6 @@ failregex = ^<HOST> \- \S+ \[\] \"(GET|POST) \/<block> \S+\" 404 .+$
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
|
||||||
|
|
||||||
[Init]
|
|
||||||
|
|
||||||
# Block is the actual non-found directories to block
|
|
||||||
block = \/?(<webmail>|<phpmyadmin>|<wordpress>|cgi-bin|mysqladmin)[^,]*
|
|
||||||
|
|
||||||
# These are just convient definitions that assist the blocking of stuff that
|
|
||||||
# isn't installed
|
|
||||||
webmail = roundcube|(ext)?mail|horde|(v-?)?webmail
|
|
||||||
|
|
||||||
phpmyadmin = (typo3/|xampp/|admin/|)(pma|(php)?[Mm]y[Aa]dmin)
|
|
||||||
|
|
||||||
wordpress = wp-(login|signup)\.php
|
|
||||||
|
|
||||||
|
|
||||||
# DEV Notes:
|
# DEV Notes:
|
||||||
# Based on apache-botsearch filter
|
# Based on apache-botsearch filter
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue