From 3a2da3df9826ea195ce2bc187cbcb5101bc2616b Mon Sep 17 00:00:00 2001 From: Hanno Zulla Date: Mon, 22 Jun 2015 15:22:51 +0200 Subject: [PATCH] Don't allow Apache to serve git files --- .htaccess | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index e63c168..b207ad9 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,7 @@ Options -Indexes +RedirectMatch 404 /\.git + # --- # Uncomment these lines to change PHP parameters if you are using the PHP Apache module # --- @@ -16,4 +18,4 @@ Options -Indexes # --- #Header add Access-Control-Allow-Origin "*" #Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type" -#Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" \ No newline at end of file +#Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"