.htaccess file
-------------------------------
AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "My Secret Folder"
Require valid-user
.htpasswd ------------------------------ htpasswd .htpasswd young
or edit
young:dXERdeoxy.t.Q
good explain here
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/
this is good app if you don’t have access to the server