mirror of https://github.com/fail2ban/fail2ban
Added filter nginx-bad-request
parent
6cff2bb007
commit
3c83c19070
|
@ -0,0 +1,13 @@
|
||||||
|
# Fail2Ban filter to match bad requests to nginx
|
||||||
|
#
|
||||||
|
|
||||||
|
[Definition]
|
||||||
|
|
||||||
|
# The request often doesn't contain a method, only some encoded garbage
|
||||||
|
failregex = ^<HOST> \- \S+ \[\] \".+\" 400 .+$
|
||||||
|
|
||||||
|
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
|
||||||
|
^[^\[]*\[({DATE})
|
||||||
|
{^LN-BEG}
|
||||||
|
|
||||||
|
# Author: Jan Przybylak
|
Loading…
Reference in New Issue