0%

Add an useless authentication for your website

In fact, not necessarily how safe, that is, casually block some things to prevent trouble……
First, in your /home create a file called htpasswd.

Then go to hereto generate your username and password,then input them into htpasswd. Encrypt way please choose Crypt.

In Nginx’s conf add

auth_basic "Please provide password";
auth_basic_user_file /home/htpasswd;

That’s it.
This simple 401 can prevent trouble with the role of anti-theft chain.