From 055b8e55947798c165675faf47e2f8f5521c1674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 9 Oct 2025 15:21:45 +0300 Subject: [PATCH] Deny access to directories --- .htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.htaccess b/.htaccess index fa8234e..87dd282 100644 --- a/.htaccess +++ b/.htaccess @@ -11,3 +11,12 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.html [NC,L,QSA] + + +IndexIgnore */* +Options -Indexes + + + +RedirectMatch 403 ^/.git(/.*)?$ +