[security] Update .htaccess

Access to composer files should not be world readable as a malicious user could find information on outdated libraries.
This commit is contained in:
James 2017-02-06 22:26:13 +01:00 committed by GitHub
parent a1208b3a15
commit 879345414e

View File

@ -18,3 +18,14 @@ RewriteRule .? - [L]
RewriteRule .? %{ENV:BASE}/index.php [L] RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule> </IfModule>
# Config files from vendor should not be readable via browser
<FilesMatch "composer.json">
Order Allow,Deny
Deny from All
</FilesMatch>
<FilesMatch "composer.lock">
Order Allow,Deny
Deny from All
</FilesMatch>