diff --git a/.htaccess.dist b/.htaccess.dist index ec28dff859c08e79ef66282da0a85f3785ce9c19..1d2bd418e61468fc3bf1c07186f5af5379d6ea87 100644 --- a/.htaccess.dist +++ b/.htaccess.dist @@ -15,6 +15,11 @@ </IfModule> </Files> +## Don't allow access to git directories +<IfModule alias_module> + RedirectMatch 404 /\.git +</IfModule> + ## Uncomment these rules if you want to have nice URLs using ## $conf['userewrite'] = 1 - not needed for rewrite mode 2 #RewriteEngine on