mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Drop access to tests folder
This commit is contained in:
parent
3695ff3d03
commit
27ab57eede
|
|
@ -44,7 +44,7 @@ RewriteRule .* index.php [L]
|
|||
|
||||
## Begin - Security
|
||||
# Block all direct access for these folders
|
||||
RewriteRule ^(.git|cache|bin|logs|backup|webserver-configs)/(.*) error [F]
|
||||
RewriteRule ^(.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F]
|
||||
# Block access to specific file types for these system folders
|
||||
RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|yaml|php|pl|py|cgi|twig|sh|bat)$ error [F]
|
||||
# Block access to specific file types for these user folders
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user