Make it possible to accept not only GET/POST/HEAD requests for badbots checker

pull/3678/head
Mikhail Sandakov 2024-02-27 13:58:03 +02:00
parent 8542c44e98
commit 65ef68b83d
2 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 =