Skip to content

Commit

Permalink
blocking more bots
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 2, 2024
1 parent 7b65a23 commit c7fe484
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions local/config/vufind/httpd-vufind.conf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ AliasMatch ^/resources/cache/(.*)$ /usr/local/vufind/local/cache/public/$1
<ElseIf "%{HTTP_USER_AGENT} =~ /facebook/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /applebot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /awariobot/">
Require all denied
</ElseIf>
<Else>
Require all granted
</Else>
Expand Down Expand Up @@ -148,6 +154,12 @@ Alias /resources /usr/local/vufind/public
<ElseIf "%{HTTP_USER_AGENT} =~ /facebook/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /applebot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /awariobot/">
Require all denied
</ElseIf>
<Else>
Require all granted
</Else>
Expand Down

0 comments on commit c7fe484

Please sign in to comment.