Skip to content

Commit

Permalink
blocking specific user agent making relentless requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 9, 2023
1 parent 6a7ce8e commit 18ce849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local/config/vufind/httpd-vufind.conf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Alias /resources /usr/local/vufind/public
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

RewriteCond %{HTTP_USER_AGENT} "=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
RewriteRule . - [R=403,L]
# Uncomment this line to put VuFind into development mode in order to see more detailed messages:
#SetEnv VUFIND_ENV development

Expand Down

0 comments on commit 18ce849

Please sign in to comment.