How do I setup password protected pages?
Matt's Script Archive |
1. Use our
access program to add your username/password to our database. 2. Create a .htaccess file in the directory you would like to password protect. 3. The .htaccess file should contain the following: AuthUserFile /data/.htpasswd AuthGroupFile /dev/null AuthName username AuthType Basic require user username Change username to the name you added to our database with the access.pl program. |
Tutorials |
|
Password protecting folders:
Sometimes you may want your users to have a password before they can access areas of your
web site. To this the web server looks for a file called .htaccess. This files tells the
web server to do something special before it allows access to the folder. You .htaccess
file should look just like this (except it has your information)
AuthName (any name you want)
AuthType Basic
AuthUserFile /usr/local/etc/htpasswd/your_userID
Require valid-user
Now upload the file to the folder you want to protect: THE FILE NAME MUST BE .htaccess Yes
the is a dot before the file name.
Now you can contact support to make the passwords. The password system uses that normal
UNIX password system so people can look them up.
You should now have a password protected folder.