From 467817f92210d29eff5718c1da2022e21c24556f Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 5 Jun 2000 16:10:47 +0000 Subject: [PATCH] * Enhancement: protect the themes/-directory (and subdirectory) from prying eyes. --- .htaccess | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.htaccess b/.htaccess index 9a69c7655638..99b737c98206 100644 --- a/.htaccess +++ b/.htaccess @@ -21,6 +21,12 @@ deny from all </Files> +# Protect theme directories: +<Files *themes> + order deny,allow + deny from all +</Files> + # Customized server error messages: ErrorDocument 400 /error.php ErrorDocument 402 /error.php -- GitLab