|
The
following steps will create a directory that will bring
up a dialog box pop up that asks for username and password
when accessed with your browser.
For
help with the below commands, please refer to our UNIX
FAQ
| 1. |
Create
a directory and put the files that you want protected
into the directory. |
| 2. |
Use
a telnet program and connect to your domain using
your login and password. |
| 3. |
From
the command prompt, change to the directory you
want to protect using the cd command, then type
webprotect prot
This
will create the needed files to protect your directory. |
| 4. |
After
you protect the directory, type
webprotect add user |
where
user is the name of a user you want to give access to
that part of your site. The program will ask you for
a password.
This
process will create two files in your directory: .htaccess
and .htpasswd. These files contain the information
necessary to protect that directory. If you delete one
or both of them, you will disable or remove the protection
effects from that directory.
|