Permalink
Browse files

Block access to hidden files/folders

  • Loading branch information...
telephone committed Jan 26, 2015
1 parent 0c2598d commit 4e9a14966440c1f7df1e25b9fd93d02d69144613
Showing with 3 additions and 0 deletions.
  1. +3 −0 .htaccess
View
@@ -5,5 +5,8 @@ Options -Indexes
# Overkill, but used for development (dev folder = /LookingGlass)
RedirectMatch 404 /LookingGlass/(.*\.(?:conf|db|sh)|(?:Config|LookingGlass|RateLimit)\.php)$
# Deny access to hidden files/folders
RedirectMatch 404 /\.
# Disable gzip for test files
SetEnvIf Request_URI \.test$ no-gzip dont-vary

0 comments on commit 4e9a149

Please sign in to comment.