Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour authored Aug 9, 2022
1 parent cac4c85 commit efca27f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,20 @@
Allow from all

###########################################
## Deny access to other project files to prevent disclosure of the installed Magento version
## Deny access to other project files to prevent disclosure of the installed Magento version or other information
## Only robots.txt and manifest.json should be allowed by default

<FilesMatch (?<!robots)\.txt$>
order allow,deny
deny from all
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch (?<!manifest)\.json$>
order allow,deny
deny from all
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch \.(lock|md|sample|yml)$>
order allow,deny
deny from all
<FilesMatch \.(lock|md|sample|sh|yml|yaml)$>
Order allow,deny
Deny from all
</FilesMatch>

############################################
Expand Down

0 comments on commit efca27f

Please sign in to comment.