From 51a0d16b53abe970acf1918dfffcaa225a65db3a Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 17 Jun 2021 19:59:38 +0200 Subject: Add .git to forbidden directories --- .ht-nginx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.ht-nginx') diff --git a/.ht-nginx b/.ht-nginx index ff6b459..6b97cb8 100644 --- a/.ht-nginx +++ b/.ht-nginx @@ -18,7 +18,7 @@ error_page 404 /404.php; #=============================================================================== # Forbidden directories #=============================================================================== -location ~ ^/(core|theme/([^/]+)/(html|lang)/) { +location ~ ^/(.git|core|theme/([^/]+)/(html|lang)/) { return 403; } -- cgit v1.2.3