Disallow the access to all files and folders with dot at the beginning

It is a good practice to disallow the access to all files and folders with dot at the beginning, except for .well-known folder (it is used for certificates verification and for security.txt file).

 

Apache .htaccess:

 

Nginx:

 

 

 

I ask you to review this article

Rating 5 Stars from 3 reviews

Leave a Reply

Your email address will not be published. Required fields are marked *

20 − twelve =