Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Jul 31, 2015
1 parent 775dc20 commit b6fba02
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .htaccess
Expand Up @@ -32,4 +32,14 @@ Options -Indexes
RewriteRule "(^|/)\." - [F]
</IfModule>

# Block access to all hidden files and directories with the exception of
# the visible content from within the `/.well-known/` hidden directory.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} "!(^|/)\.well-known/([^./]+./?)+$" [NC]
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
</IfModule>


0 comments on commit b6fba02

Please sign in to comment.