Skip to content

Commit

Permalink
updated .htaccess to disallow common sensitive files and directories …
Browse files Browse the repository at this point in the history
…- update
  • Loading branch information
brusch committed Nov 13, 2015
1 parent 7833ec9 commit 5a439e3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .htaccess
Expand Up @@ -38,12 +38,8 @@ RewriteRule ^pimcore/.*$ / [F,L]
RewriteRule (^\.|/\.) - [F,L]

# restrict access to potentially sensitive directories and files
RewriteRule ^phing/.*$ / [F,L]
RewriteRule ^node_modules/.*$ / [F,L]
RewriteRule ^vendor/.*$ / [F,L]
RewriteRule ^tests/.*$ / [F,L]
RewriteRule ^(bower|package|composer)\. / [F,L]
RewriteRule ^gulpfile\.js / [F,L]
RewriteRule ^(vendor|tests|node_modules|phing)/.*$ / [F,L]
RewriteRule ^(bower|package|composer|gulpfile)\. / [F,L]

# basic zend-framework setup see: http://framework.zend.com/manual/en/zend.controller.html
RewriteCond %{REQUEST_FILENAME} -d [OR]
Expand Down

0 comments on commit 5a439e3

Please sign in to comment.