Hi,
1)Create .htaccess in any folder you want to protect. Example of .htaccess
AuthType Basic
AuthName "Password Protected"
AuthUserFile /usr/local/apache/bin/htpasswd.pass
Require user username1 username2
2) Create password file:
htpasswd -c /usr/local/apache/bin/htpasswd.pass username1
-c option to create new file. To append leave out the -c option. htpasswd file should be in your apache bin directory. Location of this password file is depends by .htaccess file. You can use any filename. Above just for example.
regards,
feroz