Website Security
Support : Websites
: Password Protection
Adding a password prompt to a section of your website is fairly easy
and involves four steps.
- Create a .htaccess file.
- Install it into the directory of your website that you wish to protect
- Create a .htpasswd file
- Install it into the same directory as the .htaccess file
Once this is done, the next time a user attempts to access the protected
directory, the user will be prompted by their web browser for a password.
You can assign as many users as you like to access the directory. Each
user has one entry in the .htpasswd file and each entry appears on a separate
line.
Getting Started: Create an .htaccess file
Enter the path to your .htpasswd file relative to the .htaccess file,
and optionally the title of the password box. For example, A relative path would look
like: ./protected/.htpasswd
When you fill out this form, thispage will display the contents of your completed .htaccess file.
Save this file to your local disk and upload it to the directory of your website (i.e. the path
you specified) that you wish to protect.
Create the .htpasswd file.
Enter a username and a passwordfor that username and click Create Password.
This will display a username:password entry for your .htpasswd file. The
next step is to create a file locally on your system containing this information.
Then upload this file into the directory of your website where you placed
your .htaccess file. If you already have a .htpasswd file and are create
an additional user, just add the line returned by thew form below to the
end of the file and upload the new file.
|