Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Simple Password Protection help. (http://www.greenguysboard.com/board/showthread.php?t=744)

Dr Bizzaro 2003-09-15 09:39 AM

Simple Password Protection help.
 
I just tried to password protect a dir on my site. I used this site 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 2003-09-15 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 2003-09-15 10:06 AM

It could be two things path or settings :(

EclectiXXX 2003-09-15 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 2003-09-15 11:21 AM

Quote:

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 2003-09-21 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 2003-09-21 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 2003-09-21 11:24 PM

AcePassword works quite well :)

RawAlex 2003-09-22 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 2003-09-22 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


All times are GMT -4. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc