Skip to content

Commit

Permalink
Custom Jail for Repeat Error 444 and 403 Offenders
Browse files Browse the repository at this point in the history
- New improved Regex pattern for catching Jorgee
- With Great Thanks to Konstantin Goretzki @terriblespider
  • Loading branch information
mitchellkrogza committed Aug 20, 2017
1 parent f38621d commit fbb2ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Fail2Ban/filter.d/nginxrepeatoffender.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ _daemon = fail2ban\.actions\s*
# jail using this filter 'nginxrepeatoffender', or change this line!
_jailname = nginxrepeatoffender

failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) \/ \S+\" (?:403|444) .+$
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex =


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ _daemon = fail2ban\.actions\s*
# jail using this filter 'nginxrepeatoffender', or change this line!
_jailname = nginxrepeatoffender

failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) \/ \S+\" (?:403|444) .+$
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex =


Expand Down

0 comments on commit fbb2ffa

Please sign in to comment.