2015-01-29 16:57:52 +00:00
|
|
|
# Fail2Ban filter to match web requests for selected URLs that don't exist
|
|
|
|
#
|
|
|
|
|
2015-02-03 03:25:47 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
# Load regexes for filtering
|
|
|
|
before = botsearch-common.conf
|
|
|
|
|
2015-01-29 16:57:52 +00:00
|
|
|
[Definition]
|
|
|
|
|
2015-07-07 15:45:40 +00:00
|
|
|
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) \/<block> \S+\" 404 .+$
|
|
|
|
^ \[error\] \d+#\d+: \*\d+ (\S+ )?\"\S+\" (failed|is not found) \(2\: No such file or directory\), client\: <HOST>\, server\: \S*\, request: \"(GET|POST|HEAD) \/<block> \S+\"\, .*?$
|
2015-01-29 16:57:52 +00:00
|
|
|
|
|
|
|
ignoreregex =
|
|
|
|
|
2016-10-07 12:57:45 +00:00
|
|
|
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
|
|
|
|
^[^\[]*\[({DATE})
|
|
|
|
{^LN-BEG}
|
2015-01-29 16:57:52 +00:00
|
|
|
|
|
|
|
# DEV Notes:
|
|
|
|
# Based on apache-botsearch filter
|
|
|
|
#
|
|
|
|
# Author: Frantisek Sumsal
|