Added filter nginx-bad-request

pull/2750/head
Jan Przybylak 5 years ago
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…
Cancel
Save