From bce0b957b5f610807083f1689376f383b2d0feaa Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 9 Sep 2019 08:30:43 +0300 Subject: [PATCH] feat(core): .htaccess Block all direct access to .md files #186 --- .htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 68b3e62d..df737543 100755 --- a/.htaccess +++ b/.htaccess @@ -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