mirror of https://github.com/fail2ban/fail2ban
Make it possible to accept not only GET/POST/HEAD requests for badbots checker
parent
8542c44e98
commit
65ef68b83d
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 New Issue