This tutorial covers Basic user authentication using HTAccess.
Authentication denies web access to files, unless the visitor has a valid username and password.
This feature allows webmasters, like yourself, to restrict access to certain directories. The usernames and encrypted passwords are kept in a webmaster-maintained file. Let's suppose you want to restrict files in a directory called turkey to username pumpkin and password pie . In the above .htaccess file, AuthUserFile points to the directory which contains the password file. In this case, we named the password file, .htpasswd.