How to protect the admin site? Used htaccess
and .htpasswd
.
Here is what I wrote in .htaccess
:
AuthType Basic AuthName "Enter your login and password" AuthUserFile htpasswd/.htpasswd Require admin
In .htpasswd
special program encrypts the password. But there is a problem. Either hits the 500 error, or simply does not allow to display a white screen on the site.
Hence the question, how to protect the admin site? Using .htaccess
and .htpasswd
or tell me if someone has other ways to protect them.
I heard that you can somehow protect through mysql databases - but as I do not know for sure, unfortunately.