From 7e17408634c3e60d127b6bd5d3acb6807ed4528f Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 23 Apr 2016 17:08:16 +0900 Subject: [PATCH] htaccess: Block access to .git directory Refs flarum/core#632. --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index b0f5e4c..33c681f 100644 --- a/.htaccess +++ b/.htaccess @@ -17,6 +17,7 @@ RewriteRule ^vendor/(.*)?$ / [F,L] RewriteRule ^storage/(.*)?$ / [F,L] RewriteRule ^config.php$ / [F,L] + RewriteRule ^.git/(.*)?$ / [F,L] RewriteRule ^api(.*)$ api.php [QSA,L] RewriteRule ^admin(.*)$ admin.php [QSA,L]