dark_camel
Feb 28, 2003, 12:20 PM
I need to add a password protected area of my website which requires a password and login. I am wondering what are the options/considerations, and would rather avoid a database driven solution.
any help would be gr8ly appr8ed!!!:beer:
uk_trader
Feb 28, 2003, 12:34 PM
You want to use htaccess
make a text file something like this
AuthUserFile /path/to/your/password/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Stuff"
AuthType "Basic"
<Limit GET POST>
require valid-user
</Limit>
and save it as htaccess in your directory you want to protect
then you need to set up your htpasswd file
just type them in google and you should be able to find more detasiled tutorials.
P.S if your on free hosting it wont work because 98% of the time you have no control over the htaccess.
dark_camel
Mar 01, 2003, 03:45 AM
cheers uk_trader, its not free hosting, so shouldnt be a problem.
ps how secure is the htaccess/passwd method of protecting a directory?