Friday, July 30 2010

Technical Support
Account Management
Dialup Configuration
WWW Browsers
E-Mail
Newsgroups
Website Design Information
HTML Basics
 
HTML Structure
 
My First Webpage
Publishing your site
 
Using FTP
Advanced Resources
 
Password Protecting your site
 
Web Counter CGI
 
Form Mail CGI
 
Guestbook CGI
 
Simple Search CGI
 
Webboard CGI
Misc Configuration

Website Security

Support : Websites : Password Protection

Adding a password prompt to a section of your website is fairly easy and involves four steps.

  1. Create a .htaccess file.
  2. Install it into the directory of your website that you wish to protect
  3. Create a .htpasswd file
  4. 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.

Path: .htpasswd
Title (optional):

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.

Username
Password:
©2002, Isterra Services offered by Primus. All rights reserved.
Acceptable Use Policies
Rates and General Service Agreement