mirror of https://github.com/fail2ban/fail2ban
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
740 B
25 lines
740 B
# Fail2Ban filter to match web requests for selected URLs that don't exist |
|
# |
|
|
|
[INCLUDES] |
|
|
|
# Load regexes for filtering |
|
before = botsearch-common.conf |
|
|
|
[Definition] |
|
|
|
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+\"\, .*?$ |
|
|
|
ignoreregex = |
|
|
|
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)? |
|
^[^\[]*\[({DATE}) |
|
{^LN-BEG} |
|
|
|
journalmatch = _SYSTEMD_UNIT=nginx.service + _COMM=nginx |
|
|
|
# DEV Notes: |
|
# Based on apache-botsearch filter |
|
# |
|
# Author: Frantisek Sumsal
|
|
|