mirror of https://github.com/fail2ban/fail2ban
filter.d/apache-fakegooglebot.conf: better, more precise regex and datepattern (closes possible weakness like #3013)
parent
4f8427178a
commit
3f9cf27853
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
failregex = ^<HOST> .*Googlebot.*$
|
failregex = ^\s*<HOST> \S+ \S+(?: \S+)?\s+\S+ "[A-Z]+ /\S* [^"]*" \d+ \d+ \"[^"]*\" "[^"]*\bGooglebot/[^"]*"
|
||||||
|
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
|
||||||
datepattern = ^[^\[]*\[({DATE})
|
datepattern = ^[^\[]*(\[{DATE}\s*\])
|
||||||
{^LN-BEG}
|
{^LN-BEG}
|
||||||
|
|
||||||
# DEV Notes:
|
# DEV Notes:
|
||||||
|
|
Loading…
Reference in New Issue