::::: User Authentication :::::

User authentication allows you to control who can view certain sections of your website. When a user enters that section (a sub-folder), he is greeted with a log / password request.

You must create a ".htaccess" file in the folder you wish to protect. The file should contain the following lines :

AuthUserFile /home/username/.htpasswd
AuthGroupFile /dev/null
AuthName "PrivateSection"
AuthType Basic
<Limit GET>
require user username1,username2,username3
</Limit>

Replace "username" with your username and "username1,username2,username3" with the user(s) name(s) that will have access to that section. You can invent any user name you want.

Now that the folder is protected, you must create a password file for the usernames that will have access to your private section. The file should be called ".htpasswd" and it should be located in the root folder of your account, next to your "www" and "cgi-bin" folders.

Use an application such as "Magsys passwd" to generate your ".htpasswd" file.


     Welcome