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 5, 2023
1 parent 88187da commit bdf3036
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions local/config/vufind/httpd-vufind.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ AliasMatch ^/resources/cache/(.*)$ /usr/local/vufind/local/cache/public/$1
<If "%{HTTP_USER_AGENT} =~ /bytedance/">
Require all denied
</If>
<ElseIf "%{HTTP_USER_AGENT} =~ /ahrefs/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /semrush/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /bytespider/">
Require all denied
</ElseIf>
<Else>
Require all granted
</Else>
Expand All @@ -31,6 +40,15 @@ Alias /resources /usr/local/vufind/public
<If "%{HTTP_USER_AGENT} =~ /bytedance/">
Require all denied
</If>
<ElseIf "%{HTTP_USER_AGENT} =~ /ahrefs/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /semrush/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /bytespider/">
Require all denied
</ElseIf>
<Else>
Require all granted
</Else>
Expand Down

0 comments on commit bdf3036

Please sign in to comment.