Skip to content

Commit

Permalink
Block access to hidden files/folders
Browse files Browse the repository at this point in the history
  • Loading branch information
telephone committed Jan 26, 2015
1 parent 0c2598d commit 4e9a149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ Options -Indexes
# Overkill, but used for development (dev folder = /LookingGlass) # Overkill, but used for development (dev folder = /LookingGlass)
RedirectMatch 404 /LookingGlass/(.*\.(?:conf|db|sh)|(?:Config|LookingGlass|RateLimit)\.php)$ RedirectMatch 404 /LookingGlass/(.*\.(?:conf|db|sh)|(?:Config|LookingGlass|RateLimit)\.php)$


# Deny access to hidden files/folders
RedirectMatch 404 /\.

# Disable gzip for test files # Disable gzip for test files
SetEnvIf Request_URI \.test$ no-gzip dont-vary SetEnvIf Request_URI \.test$ no-gzip dont-vary

0 comments on commit 4e9a149

Please sign in to comment.