Skip to content

Commit

Permalink
filter.d/apache-fakegooglebot.conf: better, more precise regex and da…
Browse files Browse the repository at this point in the history
…tepattern (closes possible weakness like #3013)
  • Loading branch information
sebres committed May 11, 2021
1 parent 4f84271 commit 3f9cf27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/filter.d/apache-fakegooglebot.conf
Expand Up @@ -2,11 +2,11 @@

[Definition]

failregex = ^<HOST> .*Googlebot.*$
failregex = ^\s*<HOST> \S+ \S+(?: \S+)?\s+\S+ "[A-Z]+ /\S* [^"]*" \d+ \d+ \"[^"]*\" "[^"]*\bGooglebot/[^"]*"

ignoreregex =

datepattern = ^[^\[]*\[({DATE})
datepattern = ^[^\[]*(\[{DATE}\s*\])
{^LN-BEG}

# DEV Notes:
Expand Down

0 comments on commit 3f9cf27

Please sign in to comment.