The following describes how you will be able to limit
access/protect certain directories in your web site hosted on UNIX or
Linux servers. For more information about access control, refer to
Access Configuration or
User Authentication Tutorial
Creating the access control file
Create a metafile (ASCII text file) containing the following:
If you do not wish to create a group file (which is
only required if you wish to allow different users access to different
directories while maintaining only one password file):
Save your metafile. Now you need to put this file
in the directory that you wish to
enforce access control. Upload this file, make sure you upload it in
ASCII format to the
directory, then rename it to ".htaccess".
Creating the password file
Logged in via ssh to the
FTP server, type in the following command (which will take you to the
directory)
cd /home/www.yourdomain.com
If you this is the first time you are doing this, remember to use
"-c" in the following command. If the .htpasswd file
already exists, do not use "-c:
htpasswd -c .htpasswd username
You will be prompted to enter the password.
Creating the group file
Create a metafile (ASCII text file) containing the following:
groupname:username1username2
Save your metafile. Now you need to upload this file in the /home/www.yourdomain.com/
directory. Remember to upload this file in the ASCII format.
Hot Tip
did you know?
Clients that need to run web applications, run relatively large sites, or require more security and stability than a shared hosting platform, usually opt for a Dedicated Server. ResponsiveWeb Dedicated Servers start from only $125/mo, and are fully customizable. You can choose from 3 different Dell servers (running Windows, Red Hat and FreeBSD) or choose from 3 Sun Sparc servers (running Aurora Linux).
E Commerce in a Box ResponsiveWeb CommerceBolt:
Amazon.com grade shopping cart! Get listed in Froogle, Pricegrabber, Bizrate, & manage your inventory, shipments, orders, & more.
Web Design
Clean, Professional, and Effective. Web Design without the child's play. Cutting Edge Design: starting at $299, with a Free Domain Name, Free Database, & Free Month of Hosting