Browse Source

:beers: Block access to dotfiles, except for .well-known/

Andrea Franceschini 6 years ago
parent
commit
a7c048b93f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .htaccess

+ 1 - 0
.htaccess

@@ -1,4 +1,5 @@
 RewriteEngine on
+RewriteRule "(^|/)\.(?!well-known\/)" - [F]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_URI} !=/favicon.ico