Computer Store
-Collapse +Expand
Search Design Group:

-Collapse +Expand Design Store

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► KBWebsite HostingUnix Hosting   Print This     
  From the August 2009 Issue of Prestwood eMag
Design Unix Hosting:
Password protect directories for Unix Web Hosting
Posted 18 years ago on 11/19/2002
Take Away: You can assign unique userids and passwords to control access to various web pages.


Password protection for web access to directories and files


You can assign unique userids and passwords to control access to various web pages. An example of this function is apparent when you access your own Control Panel -- each time you are prompted for your id and password. The actual web pages are not password protected, but rather the directory in which they reside.


A software developer is making several programs available via the web, but only those visitors which have paid for the service should be allowed access to the download page. To control access, the page is placed in a directory which is password protected. Instead of distributing a single password, unique userids and passwords are assigned and removed as needed.

How to use:

  1. Create the directory you wish to password protect
  2. Select the link titled, "Edit Access" in your Control Panel
  3. Enter the name of the directory and click "Load"

The first time you use this function, the page will reload and the "Add/Modify user" option will appear toward the bottom of the page. If you have already added users, the option to "Remove user" will also appear.

A list of userids will be updated and displayed as you maintain the list. Create a new HTML document or copy an existing one into the directory and try loading the page from a web browser. If a password is required, you've done your job correctly!

Do not attempt to password protect any system directories such as "stats" or "cgi-local". Edit Access CANNOT be used to create additional FTP userids and passwords.


Share a thought or comment...
Write a Comment...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P191A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #100062 Counter
Since 4/2/2008

©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech