From e2ea113e05fc8ec05096ce7c4b7d6f88aecce894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 9 Oct 2025 15:40:17 +0300 Subject: [PATCH] Deny access to directories --- .htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.htaccess b/.htaccess index 6ea4ad0..f1c9e73 100644 --- a/.htaccess +++ b/.htaccess @@ -11,3 +11,13 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [NC,L,QSA] + + +IndexIgnore */* +Options -Indexes + + + +RedirectMatch 403 ^/.git(/.*)?$ +RedirectMatch 403 ^/datastore(/.*)?$ + \ No newline at end of file