PDA

View Full Version : .htpasswd



Toefur
June 1st, 2001, 08:08
What am I meant to put in this file to set the passwords and usernames?

I have edited my .htaccess file, and when trying to go to the password protected directory it brings up the password promt, but what I put in .htpasswd doesn't work.

I had this in my .htpasswd:

test:password

But obviously thats wrong.

It doesn't seem to explain this on any sites.

Many thanks.

meow
June 1st, 2001, 09:32
1. Have you used the absolute path to your .password file in the .htaccess? If you haven't, you have to check what the absolute path to your account is.

2. The PW's should be encrypted. Tool here: http://www.webextractions.f2s.com/cgi-bin/makepass/password.cgi

Toefur
June 1st, 2001, 10:39
1. It's the absolute path, checked, & double checked.

2. Used the encrypter thing, and changed the .htpasswd file, and it's still not working.

:(

Any other odeas?

meow
June 1st, 2001, 10:55
Nope. If it isn't a typo somewhere. :confused:

skirrow
June 3rd, 2001, 04:20
Did you want to setup a members area with multiple users or just protection with a single username and password?

If you want a members area, try:
Locked Area Lite (http://www.lockedarea.com/html/)

If you want to just have one user, go here and look for a suitable script:
CGI Resource Index: Perl: Password Protection (http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Password_Protection/)

Hope this helps

Neil