mirror of https://github.com/fail2ban/fail2ban
Removed unnecessary escape sequence
This commit also contains changes to match requests that are 100% empty (by using "*" instead of "+" in the regex)pull/2750/head
parent
d7ef5d166d
commit
a5ab4406d8
|
@ -4,7 +4,8 @@
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
# The request often doesn't contain a method, only some encoded garbage
|
# The request often doesn't contain a method, only some encoded garbage
|
||||||
failregex = ^<HOST> \- \S+ \[\] \"[^\"]+\" 400
|
# This will also match requests that are entirely empty
|
||||||
|
failregex = ^<HOST> - \S+ \[\] "[^"]*" 400
|
||||||
|
|
||||||
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
|
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
|
||||||
^[^\[]*\[({DATE})
|
^[^\[]*\[({DATE})
|
||||||
|
|
Loading…
Reference in New Issue