mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Added filter nginx-bad-request
This commit is contained in:
parent
6cff2bb007
commit
3c83c19070
1 changed files with 13 additions and 0 deletions
13
config/filter.d/nginx-bad-request.conf
Normal file
13
config/filter.d/nginx-bad-request.conf
Normal file
|
|
@ -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 a new issue