diff --git a/.htaccess b/.htaccess index 585273a3a4b..fbf3c6a99a4 100644 --- a/.htaccess +++ b/.htaccess @@ -99,6 +99,12 @@ #RewriteBase /magento/ +############################################ +## Prevent serving "hidden" files like git repository + + RewriteCond %{REQUEST_URI} /\. + RewriteRule ^(.*)$ / [R=404,L] + ############################################ ## uncomment next line to enable light API calls processing