diff options
| author | Pascal Terjan <pterjan@mageia.org> | 2025-04-16 20:26:49 +0000 |
|---|---|---|
| committer | Pascal Terjan <pterjan@mageia.org> | 2025-04-16 20:26:49 +0000 |
| commit | d904370553f208098564ae70860050dc0c4ab8dd (patch) | |
| tree | 017c6b2680690d2cfd3041ad1f5d6fd1857e6cc1 | |
| parent | e32e9a6edb2637746a35510b9237f04e611123ac (diff) | |
| download | puppet-d904370553f208098564ae70860050dc0c4ab8dd.tar puppet-d904370553f208098564ae70860050dc0c4ab8dd.tar.gz puppet-d904370553f208098564ae70860050dc0c4ab8dd.tar.bz2 puppet-d904370553f208098564ae70860050dc0c4ab8dd.tar.xz puppet-d904370553f208098564ae70860050dc0c4ab8dd.zip | |
Block a few more things
| -rw-r--r-- | modules/apache/templates/vhost_fcgid.conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/apache/templates/vhost_fcgid.conf b/modules/apache/templates/vhost_fcgid.conf index 6e34fc5d..0d9d0370 100644 --- a/modules/apache/templates/vhost_fcgid.conf +++ b/modules/apache/templates/vhost_fcgid.conf @@ -18,7 +18,7 @@ RewriteRule . - [R=403,L] # bunch). "Expensive" is considered to be most operations other than showing a # directory or downloading a specific version of a file. RewriteCond %{QUERY_STRING} pathrev=|annotate=|view=log|r1= -RewriteCond %{HTTP_USER_AGENT} "Googlebot|bingbot|Yahoo! Slurp|ClaudeBot|Amazonbot|YandexBot|SemrushBot|Barkrowler|DataForSeoBot|PetalBot|facebookexternalhit|GPTBot|ImagesiftBot|spider|Spider" +RewriteCond %{HTTP_USER_AGENT} "Googlebot|bingbot|Yahoo! Slurp|ClaudeBot|Amazonbot|YandexBot|SemrushBot|Barkrowler|DataForSeoBot|PetalBot|facebookexternalhit|GPTBot|ImagesiftBot|spider|Spider|iPod" RewriteRule . - [R=403,L] # Block abusive spiders by IP address who don't identify themselves in the @@ -26,4 +26,7 @@ RewriteRule . - [R=403,L] RewriteCond expr "-R '47.76.0.0/14' || -R '47.80.0.0/14' || -R '47.208.0.0/16' || -R '47.238.0.0/16' || -R '8.210.0.0/16' || -R '8.218.0.0/16'" RewriteRule . - [R=403,L] +RewriteCond %{QUERY_STRING} "sortby=.*view=(log|patch)" +RewriteRule . - [R=403,L] + ErrorDocument 403 "<html><body>Impolite robots are not allowed</body></html>" |
