website design, maintenance, and hosting

.htaccess Demo



This document demonstrates the use .htaccess to restrict access to web documents by user and password.

The Restricted Access Document

The document "Restricted Information" is only available to user john with password orange and user sheri with password apple. The first time you click on "Restricted Information", your web browser should prompt you for a user name and password. If it does not you may be using a web browser which is not HTTP authentication capable.


Ingredients

NOTE: There is no correspondence between the usernames and passwords used for accounts on this server and usernames and passwords in any specific .htpasswd file. A user doesn't need to have an account on this system in order to be validated for access to files protected by HTTP-based authentication.


Further Study

This example limits access by user and password, however you can also restrict access by domain. To find out more read the Mosaic User Authentication Tutorial.




Have You Seen Me?Call 1-800-THE-LOST if you've seen this child. Click on the image for case details. We support the work of the National Center for Missing and Exploited Children.
Click Here To Add A Missing Child Link To Your Pages!


Back To Web Account Documentation.

 

e-mail

Send E-Mail to:
comments@dss-sites.com

http://www.dss-sites.com

Dealer Support Services
203 Pine Street
Fulton, NY 13069-2429
Phone: (315) 598-8082
Fax: (315) 422-3837