From a23b8c051b260ac891c5dac1e3039c3a13a29696 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 10 Jun 2025 14:41:16 +0100 Subject: [PATCH] git: block shortlog for ai scraper --- cookbooks/git/templates/default/apache.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/git/templates/default/apache.erb b/cookbooks/git/templates/default/apache.erb index fa2ddab40..966374067 100644 --- a/cookbooks/git/templates/default/apache.erb +++ b/cookbooks/git/templates/default/apache.erb @@ -75,6 +75,7 @@ RewriteCond %{REQUEST_URI} ^/[^/]+\.git/log [OR] RewriteCond %{REQUEST_URI} ^/[^/]+\.git/patch [OR] RewriteCond %{REQUEST_URI} ^/[^/]+\.git/search [OR] + RewriteCond %{REQUEST_URI} ^/[^/]+\.git/shortlog [OR] RewriteCond %{REQUEST_URI} ^/[^/]+\.git/tree RewriteCond %{HTTP_REFERER} ^-?$ RewriteCond %{HTTP_USER_AGENT} ((CriOS|Chrome)/[1-9][0-9]?\.0\.|Chrome/100\.0\.|Chrome/122\.0\.0\.0|(Firefox|FxiOS)/[1-6]?[0-9]\.|MSIE\ [5-9]\.0|Opera/[8-9]\.|Windows\ NT\ [3-5]\.|Version/[3-5]\.[0-1]) [NC] -- 2.39.5