mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Make it possible to accept not only GET/POST/HEAD requests for badbots checker
This commit is contained in:
parent
8542c44e98
commit
65ef68b83d
2 changed files with 7 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -59,7 +59,9 @@ cat >| config/filter.d/apache-badbots.conf <<EOF
|
|||
badbotscustom = EmailCollector|WebEMailExtrac|TrackBack/1\.02|sogou music spider|(?:Mozilla/\d+\.\d+ )?Jorgee
|
||||
badbots = $badbots
|
||||
|
||||
failregex = ^<HOST> -.*"(GET|POST|HEAD).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
|
||||
requri = /\S*
|
||||
rescode = \d+
|
||||
failregex = ^<ADDR> [^"]*"[A-Z]+\s+%(requri)s\s+[^"]*" %(rescode)s \d+ "[^"]*" "(?:%(badbots)s|%(badbotscustom)s)"$
|
||||
|
||||
ignoreregex =
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue