Block hidden files except .well-known - Apache .htaccess + Nginx
<Directory ~ "/\.(?!well-known\/)"> | |
Order deny,allow | |
Deny from all | |
</Directory> |
<Directory ~ "/\.(?!well-known\/)"> | |
Require all denied | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment