Skip to content

Commit

Permalink
Deny direct access to any *.md files (CHANGELOG.md, README.md, etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 19, 2015
1 parent 7cb7891 commit aa60d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ RewriteRule .* index.php [L]
RewriteRule ^(.git|cache|bin|logs|backup)/(.*) error [L]
# Block access to specific file types for these folders
RewriteRule ^(system|user|vendor)/(.*)\.(txt|md|html|yaml|php|twig|sh|bat)$ error [L]
# Block all direct access to .md files:
RewriteRule \.md$ error [L]
## End - Security

</IfModule>
Expand Down
2 changes: 2 additions & 0 deletions htaccess.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ RewriteRule .* index.php [L]
RewriteRule ^(.git|cache|bin|logs|backup)/(.*) error [L]
# Block access to specific file types for these folders
RewriteRule ^(system|user|vendor)/(.*)\.(txt|md|html|yaml|php|twig|sh|bat)$ error [L]
# Block all direct access to .md files:
RewriteRule \.md$ error [L]
## End - Security

</IfModule>
Expand Down

0 comments on commit aa60d9f

Please sign in to comment.