mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Deny access to dot files and folders
This commit is contained in:
parent
61bf3af041
commit
979701668d
@ -45,8 +45,9 @@ ErrorDocument 500 /assets/error-500.html
|
||||
|
||||
# Deny access to potentially sensitive files and folders
|
||||
RewriteRule ^vendor(/|$) - [F,L,NC]
|
||||
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
|
||||
RewriteRule composer\.(json|lock) - [F,L,NC]
|
||||
RewriteRule ^silverstripe-cache(/|$) - [F,L,NC]
|
||||
RewriteRule ^composer\.(json|lock)$ - [F,L,NC]
|
||||
RewriteRule ^\. - [F,L,NC]
|
||||
|
||||
# Process through SilverStripe if no file with the requested name exists.
|
||||
# Pass through the original path as a query parameter, and retain the existing parameters.
|
||||
|
Loading…
Reference in New Issue
Block a user