Skip to content

Commit

Permalink
awariobot + additional IPrange block
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Oct 17, 2024
1 parent c7fe484 commit fbcecff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions local/config/vufind/httpd-vufind.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ AliasMatch ^/resources/cache/(.*)$ /usr/local/vufind/local/cache/public/$1
<ElseIf "%{HTTP_USER_AGENT} =~ /applebot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /awariobot/">
<ElseIf "%{HTTP_USER_AGENT} =~ /AwarioBot/">
Require all denied
</ElseIf>
<Else>
Expand Down Expand Up @@ -157,7 +157,7 @@ Alias /resources /usr/local/vufind/public
<ElseIf "%{HTTP_USER_AGENT} =~ /applebot/">
Require all denied
</ElseIf>
<ElseIf "%{HTTP_USER_AGENT} =~ /awariobot/">
<ElseIf "%{HTTP_USER_AGENT} =~ /AwarioBot/">
Require all denied
</ElseIf>
<Else>
Expand Down Expand Up @@ -192,6 +192,10 @@ Alias /resources /usr/local/vufind/public
RewriteRule .* - [F]
RewriteCond expr "-R '49.51.0.0/16'"
RewriteRule .* - [F]
RewriteCond expr "-R '14.153.0.0/16'"
RewriteRule .* - [F]
RewriteCond expr "-R '49.51.0.0/16'"
RewriteRule .* - [F]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
Expand Down

0 comments on commit fbcecff

Please sign in to comment.