1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 19:31:31 +02:00

feat(core): .htaccess Block all direct access to .md files #186

This commit is contained in:
Awilum
2019-09-09 08:30:43 +03:00
parent 5d20695dfa
commit bce0b957b5

View File

@@ -55,8 +55,8 @@ RewriteRule ^(\.git|flextype)/(.*) error [F]
RewriteRule ^(flextype|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|sh|bat)$ error [F]
# Block access to specific file types for these user folders
RewriteRule ^(site)/(.*)\.(txt|html|yaml|php|pl|py|cgi|sh|bat)$ error [F]
# Block all direct access to .html files:
RewriteRule \.html$ error [F]
# Block all direct access to .md files:
RewriteRule \.md$ error [F]
# Block all direct access to files and folders beginning with a dot
RewriteRule (^|/)\.(?!well-known) - [F]
# Block access to specific files in the root folder