# HG changeset patch # User Oleksandr Gavenko # Date 1748380507 -10800 # Node ID af1919427dfc1179914309de8fa54c316e23ea43 # Parent 5c3fb23b92081ef1865d0615a6795baeb39c7ab3 Discourage bots indexing HG: Python is slow and cause OOM kills... diff -r 5c3fb23b9208 -r af1919427dfc deb/apache-register-hg.bash --- a/deb/apache-register-hg.bash Thu May 02 16:02:45 2024 +0300 +++ b/deb/apache-register-hg.bash Wed May 28 00:15:07 2025 +0300 @@ -53,6 +53,11 @@ Require all granted + # Discourage bots indexing HG: Python is slow and cause OOM kills... + + Header add "X-Robots-Tag" "noindex, nofollow" + + ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 @@ -68,6 +73,10 @@ DocumentRoot /srv/hg ServerName hg.defun.work + + Header add "X-Robots-Tag" "noindex, nofollow" + + ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 @@ -81,4 +90,5 @@ EOF a2ensite hg +a2enmod headers service apache2 reload