fix fail2ban filter regex

* fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/235
This commit is contained in:
Stuart Cardall 2018-12-12 21:07:47 +00:00
parent 5dc1b0a9e8
commit b109aa6d12
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -51,8 +51,8 @@ _daemon = fail2ban\.actions\s*
# jail using this filter 'nginxrepeatoffender', or change this line!
_jailname = nginxrepeatoffender
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex =
failregex = ^<HOST> \- \S+ \[.*\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex = ^<HOST> \- \S+ \[.*\] \"(GET|POST|HEAD) .* \S+\" ?:200 .+$
[Init]