To utilize htaccess dynamic password protection on a directory:
1) Create a passwd file. You can create a passwd file with the
"htpasswd" utility on the server.
To create a new password file run: htpasswd -c [filename] [user]
For example: htpasswd -c .htpasswd hingis
You will then be prompted for a password for the user.
To add a new user to an existing password file, run the command: htpasswd [passwd file] [user]
For example: htpasswd .htpasswd martina
Again you will be prompted for a password for "martina".
2) Create a .htaccess file. You can either create this file locally and
ftp the file to the server, or you can edit the file directly on the
server using the text editor pico: pico .htaccess
A standard .htaccess file contains the following:
AuthUserFile <full path to the password file>
AuthGroupFile <full path to a group file>
AuthName <Prompt to be displayed in the pop up window>
AuthType Basic
<Limit GET>
require valid-user
</Limit>
For example, if you want to protect a directory "members" in your root
directory, place the following .htaccess file in the members directory.
Be sure to include the full path including your home directory for the
AuthUserFile. This assumes your document directory is located in
/web3/home1/www255, and your passwd file is named ".htpasswd" and is
located in the members directory.
AuthUserFile /web2/home1/www255/members/.htpasswd
AuthGroupFile /dev/null
AuthName This Area is Restricted to Members Only.
AuthType Basic
<Limit GET>
require valid-user
</Limit>
For more information on .htaccess files and using other features visit:
http://help.netscape.com/kb/server/960513-104.html
http://help.netscape.com/kb/server/960513-104.html
http://consult.ncsa.uiuc.edu/docs/httpd/Config/access/
How do I view the stats on my site?
From your site admin pagem choose "see site statistics". This is a like to your web statistics. The Web statistics package we use is NetTracker, one of the most comprehensive packages available.