Skip to content

Commit

Permalink
Prevent direct viewing of .env file if installed in a subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Apr 20, 2016
1 parent 5c99f9d commit b2e5fa8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

# Make sure .env files not not browseable if in a sub-directory.
<FilesMatch "\.env$">
Deny from all
</FilesMatch>

</IfModule>

0 comments on commit b2e5fa8

Please sign in to comment.