PDA

View Full Version : Simple Password Protection help.


Dr Bizzaro
09-15-2003, 09:39 AM
I just tried to password protect a dir on my site. I used this site (http://www.htmlbasix.com/passwordprotect.shtml) to help me do it. I followed the instructions exactly and I can't seem to get it to work.
The password box comes up just fine, but my password never works.

I'm not sure what I am doing wrong. Anyone have any clues?
Can YOU get it to work correctly?

Linkster
09-15-2003, 10:04 AM
Im picking at things here but usually I have a problem with the path to the .htpasswd file being wrong or having a trailing slash

MrMaryLou
09-15-2003, 10:06 AM
It could be two things path or settings :(

EclectiXXX
09-15-2003, 10:44 AM
Dr. B I have a little PERL script you can put on your domain that will let you generate user ids andpasswords and also delete them as you need to...

Let me know if you want me to e-mail it to you...

Dr Bizzaro
09-15-2003, 11:21 AM
Originally posted by EclectiXXX
Dr. B I have a little PERL script you can put on your domain that will let you generate user ids andpasswords and also delete them as you need to...

Let me know if you want me to e-mail it to you...

Sure send it along. Thanks

SomeCreep
09-21-2003, 09:39 PM
anyone know of a script that detects whatever directories have an .htpasswd and lets you view all the users in that file and lets you add/delete users or modify passwords?

Cleo
09-21-2003, 09:45 PM
I used this a long time ago. It's real basic and will do simple password protection.
http://www.hotscripts.com/Detailed/9281.html

matt
09-21-2003, 11:24 PM
AcePassword (http://new.ace-installer.com/index.php?sub=perl&sub2=free&page=acepassword) works quite well :)

RawAlex
09-22-2003, 12:03 AM
Another good way to do passwords is to use auth_MySQL instead of htpass files. This means that your users are in a mysql database (with passwords encoded) - really easy to add or remove users without the whole process of re-writing the htpass file each time. Easy to maintain with simple PHP coding, or by using something like phpMyAdmin.

Coding is very similar in the htaccess file, and you can use the same database for multiple locations (great for allowing user access to multiple pay sites, as an example, or for using the same admin user/password on all your areas, which let's you update it in one shot).

Alex

DangerDave
09-22-2003, 08:07 AM
Dr B,

When I get a password combo that doesnt work.. it is often the formatting of the .htpasswd file.

Make sure you stirp out the blank/white spaces

The other thing I do is put two password combos in there... one dud one and one real one.... for some reason I sometimes get errors with only one in place..

HTH

DD