HT Access - Texas Web Hosting, Web Design Texas, Search Engine Ranking - Compu-Wise

HT Access

Home

Web Design
Web Hosting
SEO Services
Video Streaming
Design Library
Free Animations
Support
Contacts
Security
Consulting
Accounting
  
 Peachtree
   
QuickBooks
Software Training

Site Map

Calendar

Search Page


Security

 

read more


Click here to pay with Credit Card using our Secure Sales Cart

Secure Sales Cart

Compu-Wise
4518 Janssen
Corpus Christi, TX  78411

Office
 
 (361) 857-0702 
Toll Free
(800) 691-0702
 

We are here to
help you
succeed....
 
 
read more


Search our Site

 

 

HT Access Authentication Tutorial

In a hurry? Receive complete details on our fast, affordable web hosting services and E-commerce solutions via our auto responder!

This tutorial covers web-based user authentication using HTAccess. Web-based authentication denies web access to visitors who do not give a valid username and password. This feature allows webmasters to restrict access to certain directories. The usernames and encrypted passwords are kept in a webmaster-maintained file.
You will need the following basic skills:

  • Ability to telnet and log in to your virtual domain
  • Ability to use a text editor (such as pico)
  • Working knowledge of paths and basic filesystem navigation (cd, mkdir, etc.)

The following is an example use of the .htaccess file. Let's assume that it resides at /web/guide/somewhere/somepath/.htaccess.

AuthUserFile /web/guide/somewhere/somepath/.htpasswd
AuthGroupFile /dev/null
AuthName Somewhere.com's Secret Section
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

The .htaccess file affects the directory in which it is placed, so in this example, any visitor requesting <URL:http://somewhere.com/somepath/> would be presented with an authentication request.

The .htaccess file also affects directories recursively below it. Therefore, requesting <URL:http://somewhere.com/somepath/evenmore/> would yield the same authentication request unless ~/somepath/evenmore had a .htaccess file of its own.

The first line, starting with AuthUserFile, tells the webserver where to find your username/password file. We'll create that file in a minute. For now, change the AuthUserFile line as necessary for your use.

Notice that the AuthName in the example, "Somewhere.com's Secret Section," is used in the authentication request.

Using your favorite text editor, create a file similar to the example, replacing AuthUserFile and AuthName with values for your situation. Be sure to name the file .htaccess. (You can do this with FTP)

Now that we understand the basic .htaccess model, how can we specify who is allowed? We'll create an .htpasswd file named in the AuthUserFile line above.

To create an .htpasswd file, go to the directory you specified in AuthUserFile. In the example, this is /mnt/web/guide/somewhere/somepath. Then use the htpasswd program with the -c switch to create your .htpasswd in the current directory. (You have to do this in telnet)

Type htpasswd -c .htpasswd username to create the file and add "username" as the first user. The program will prompt you for a password, then verify by asking again. You will not see the password when entering it here:

 
 
 
 
 
 
 
 
 
 
 
 
 


Domain Search
Use our current "whois"database
to search for the perfect domain
name.
********
We can register
this for you and
have you set up
with your new
website in 5 Days
or Less
Click Here
 for Search


Web Hosting

Web Hosting
Pricing
Features

read more


Web Designs



We specialize in professional
web site designs,
web design
software, web site design company,
web site design services.
read more


SEO
(Search Engine Optimization)
Services

Placement
on web search engines
,
website ranking,  search engine,
optimization
, marketing,
ranking
,
web promotion
, placement,
website
search engine
positioning
,

search engine placement,
search engine ranking,
positioning, and
submission.
read more

 

Team Work
Together we achieve the extraordinary!

Home   |    Web Designs  |   Web Hosting    |    Services    |    Valued Partners
SEO Services  (Search Engine Optimization Services)    |    
Contacts   |    Security   |    Calendar
Recommended Websites

Copyright ©Compu-Wise.Com 1997. All Rights Reserved

We accept the following payment forms
Secure Online Check We can Invoice You

free shopping carts, e-commerce solutions software