serverconfig: update exclusionsrorcz
authorThe repo.or.cz admin team <[email protected]>
Tue, 11 Feb 2025 01:05:40 +0000 (11 02:05 +0100)
committerThe repo.or.cz admin team <[email protected]>
Tue, 11 Feb 2025 01:05:40 +0000 (11 02:05 +0100)
Signed-off-by: The repo.or.cz admin team <[email protected]>
apache.conf.in
robots.txt

index 58cf1dc..f363491 100644 (file)
@@ -10,6 +10,9 @@
                RewriteCond %{SERVER_NAME} !=@@httpdnsname@@
                RewriteRule ^ http://@@httpdnsname@@%{REQUEST_URI} [L,NE,R=301]
        <IfDefine @@TLSHost@@>
                RewriteCond %{SERVER_NAME} !=@@httpdnsname@@
                RewriteRule ^ http://@@httpdnsname@@%{REQUEST_URI} [L,NE,R=301]
        <IfDefine @@TLSHost@@>
+               # bots to port 80 are always rejected rather than redirected to port 443
+               RewriteCond %{HTTP_USER_AGENT} (Slurp|Bot|Spider|Riddler|ltx71|Crawl) [NC]
+               RewriteRule ^ - [F,L]
                RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
                RewriteCond %{SERVER_NAME} =@@httpdnsname@@
                RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=301]
                RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
                RewriteCond %{SERVER_NAME} =@@httpdnsname@@
                RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=301]
index 535f649..90d9575 100644 (file)
+++ b/