Skip to content

Commit

Permalink
extending bot blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 12, 2023
1 parent 71f34e8 commit 7f2d482
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions local/config/vufind/httpd-vufind.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ AliasMatch ^/resources/cache/(.*)$ /usr/local/vufind/local/cache/public/$1
<ElseIf "%{HTTP_USER_AGENT} =~ /bingbot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /yandexbot/">
Require all denied
</ElseIf>
<ElseIf "%{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'">
Require all denied
</ElseIf>
Expand Down Expand Up @@ -82,6 +85,9 @@ Alias /resources /usr/local/vufind/public
<ElseIf "%{HTTP_USER_AGENT} =~ /bingbot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /yandexbot/">
Require all denied
</ElseIf>
# this specific user agent accounts for another 20% of our requests
<ElseIf "%{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'">
Require all denied
Expand Down

0 comments on commit 7f2d482

Please sign in to comment.