Skip to content

Commit

Permalink
Blocked various file types in .htaccess (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour committed Aug 10, 2022
1 parent de186cc commit 1791fcc
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,21 @@
Allow from all

###########################################
## Deny access to release notes 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

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

############################################
## If running in cluster environment, uncomment this
Expand Down

0 comments on commit 1791fcc

Please sign in to comment.