mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
[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:
parent
a1208b3a15
commit
879345414e
@ -18,3 +18,14 @@ RewriteRule .? - [L]
|
||||
RewriteRule .? %{ENV:BASE}/index.php [L]
|
||||
|
||||
</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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user