On developing stage of website developers can protect their website access with .htaccess password.
Steps:
First create a .htaccess file then at the end of file add the following lines
AuthName “Restricted Area”
AuthType Basic
AuthUserFile /home/smartips/.htpasswd
AuthGroupFile /dev/null
require valid-user
2. create a .htpasswd file and give username and password
smarttips:XsP89zmAUibSw
Now user Website can only access the authorized users