Answer the question
In order to leave comments, you need to log in
And with the question about the password protection of the admin panel, how to close it?
Again 25.
Today I accidentally came across in the logs that bots just skip the protection
https://mysite.ru/admin/ - a window pops up that does not allow you to download anything without entering a login / password - everything is OK here
but the bots stupidly type https://mysite .ru/admin/login.php and voila - we immediately get to the login / password page from the admin panel
location /admin {
try_files $uri $uri/ =404;
auth_basic "Restricted Content";
auth_basic_user_file /var/www/mysite.ru/.htpasswd;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question