It’s actually quite easy to do…
Follow this small guide, and your website will be protected with a login screen, with .htaccess.
First things first – Open your .htaccess file and then add the following:
AuthName "Login is required"
AuthType Basic
AuthUserFile /THE PATH TO THE FILE/htpasswd_sequre
require valid-userNow save your .htaccess file – Next thing is that we have to create the file where AuthUserFile is pointing to.
Create a new file, without any extension, call it: htpasswd_sequre
After creating the file, then go to: http://www.kxs.net/support/htaccess_pw.html to create a username and password, – Copy this to the new file..
Example: insert the following code in the file:
nicky:U7ktIBGoX1/voUpload the files to the server, and you’re all done
Simple right?





