Skip to content

Commit

Permalink
Add .htaccess config for new files
Browse files Browse the repository at this point in the history
  • Loading branch information
yukoff committed Jul 26, 2017
1 parent 89e2667 commit ec967d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ RewriteRule ^/internal_data/atom/(.*) /atom$1 [L]
RedirectMatch 404 /\\.git(/|$)

## deny access to system files
<FilesMatch "\.(.*sql|tpl|db|inc|log|md|env)|(config|common).php$">
deny from all
<FilesMatch "\.(.*sql|tpl|db|inc|log|md|env)|(config|common).php$|artisan">
Require all denied
</FilesMatch>
<DirectoryMatch "/(app|bootstrap|config|database|install|tests)/">
Require all denied
</DirectoryMatch>
1 change: 1 addition & 0 deletions app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all denied
1 change: 1 addition & 0 deletions bootstrap/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all denied
1 change: 1 addition & 0 deletions config/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all denied
1 change: 1 addition & 0 deletions database/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Require all denied

0 comments on commit ec967d0

Please sign in to comment.