Skip to content

Commit

Permalink
Merge pull request #5760 from pulibrary/15_facets
Browse files Browse the repository at this point in the history
[fail2ban] Reject requests with 15 facets, rather than 20
  • Loading branch information
christinach authored Jan 17, 2025
2 parents 6bdc328 + e1f278d commit 4a5c203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/nginxplus/files/fail2ban/nginx-bad-httpbots.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ enabled = true
port = http,https
filter = nginx-f_inclusive
logpath = /var/log/nginx/access.log
maxretry = 3
maxretry = 10
findtime = 3600
bantime = 3600
2 changes: 1 addition & 1 deletion roles/nginxplus/files/fail2ban/nginx-f_inclusive.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[Definition]
failregex = ^\{\"remote_ip\"\: \"<ADDR>\".{45,80}\"uri\"\:.{4,}?(?:\&?f(?:_inclusive)?%%5B.{5,}?){20,}
failregex = ^\{\"remote_ip\"\: \"<ADDR>\".{45,80}\"uri\"\:.{4,}?(?:\&?f(?:_inclusive)?%%5B.{5,}?){15,}
ignoreregex =

0 comments on commit 4a5c203

Please sign in to comment.