Password-Protected Web Pages

Password files are created and maintained using the htpasswd utility distributed by NCSA. Usage: htpasswd .htaccess fred flintstone adds the user/password pair "fred" with password "flintstone" to the user access file ".htaccess". If user "fred" is already in the file, then the new password replaces the previous; otherwise, the new user and password are added to the file.

Usage: htpasswd -c .htaccess creates an empty user access file ".htaccess". This utility is installed in the /bin directory of all cgi-capable virtual Web servers.


Step by step directions: (Words in bold are keywords to change to adapt to your needs):

____________

Create a file to put in the folder access above htdocs. In this file put:

username:
password:

____________

Put folder name and .htaccess file (upload as text). Remember to change domainname to the top-level domain if you have sub-domains installed in your account.

AuthType Basic
AuthName "in Dialog box"
AuthUserFile /clients/www/virtual/domainname/access/filename
require valid-user

_________________________________

EXAMPLE:

Create a file to put in the folder "access" above htdocs named flintstone. In this file put:

fred:
flintstone:

____________

Put folder name and .htaccess file (upload as text) (MUST BE FOLDER OR WON'T WORK)

Folder name: membersonly

____________

.htaccess is as follows when put in folder membersonly

AuthType Basic
AuthName "Sign-In for Members Only"
AuthUserFile /clients/www/virtual/www.livezone.com/access/flintstone
require valid-user



www.LiveZone.net
   

To SupportZone Main Page

Last Updated Nov. 2009
Copyright (c) 1995-2009 by LiveZone Communications LLC. All rights reserved.
WomenZone, BusinessZone, SupportZone are trademarks of LiveZone Communications LLC.
LiveZone is a registered trademark of LiveZone Communications LLC.