Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block access to various project files #2359

Merged
merged 4 commits into from
Aug 10, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,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
## Only robots.txt and manifest.json should be allowed by default

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

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