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:

 

 

 

Replace all diacritic chars from string in JavaScript

How to replace all diacritic chars from string in JavaScript:

Example of use:

Code for removing diacritic chars from string:  Continue reading Replace all diacritic chars from string in JavaScript