On developing stage of website developers can protect their website access with .htaccess password.
First create a .htaccess file then at the end of file add the following lines
AuthName “Restricted Area”
2. create a .htpasswd file and give username and password
Now user Website can only access the authorized users