Skip to content

Commit

Permalink
Merge pull request #5749 from pulibrary/sandbergja-patch-1
Browse files Browse the repository at this point in the history
[fail2ban] Use <ADDR> rather than <HOST> when we only need an IP address
  • Loading branch information
christinach authored Jan 15, 2025
2 parents 4b30b9b + 1be98e3 commit 2501ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/nginxplus/files/fail2ban/nginx-badbots-filter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

badbots = 360Spider|AI2Bot|Amazonbot|Applebot|Applebot-Extended|Bytespider|CCBot|ChatGPT-User|Claudebot|DuckAssistBot|Diffbot|FacebookBot|Google-Extended|GPTBot|Meta-ExternalAgent|OAI-SearchBot|YouBot

failregex = (?i)\{\"remote_ip\"\: \"<HOST>\".*?\"user_agent\"\:.*?(?:%(badbots)s).*$
failregex = (?i)\{\"remote_ip\"\: \"<ADDR>\".*?\"user_agent\"\:.*?(?:%(badbots)s).*$

ignoreregex =

0 comments on commit 2501ec1

Please sign in to comment.