From 9a81ea5e0bf8e72631b063c48183024e6f2e3380 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 7 Jul 2022 17:28:06 +0300 Subject: [PATCH] feat(htaccess): add json5 to forbidden types --- .htaccess | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 64441259..f87bdebc 100755 --- a/.htaccess +++ b/.htaccess @@ -62,9 +62,9 @@ RewriteRule .* index.php [L] # Block all direct access for these folders RewriteRule ^(\.git|src|var|tests)/(.*) error [F] # Block access to specific file types for these system folders -RewriteRule ^(src|vendor)/(.*)\.(txt|xml|md|html|neon|json|yaml|yml|php|pl|py|cgi|twig|sh|bat|neon|json)$ error [F] +RewriteRule ^(src|vendor)/(.*)\.(txt|xml|md|html|neon|json|json5|yaml|yml|php|pl|py|cgi|twig|sh|bat|neon|json)$ error [F] # Block access to specific file types for these project folders -RewriteRule ^(project)/(.*)\.(txt|md|yaml|yml|neon|json|php|pl|py|cgi|twig|html|sh|bat|neon|json)$ error [F] +RewriteRule ^(project)/(.*)\.(txt|md|yaml|yml|neon|json|json5|php|pl|py|cgi|twig|html|sh|bat|neon|json)$ 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