![]() |
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? |
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
|
It could be two things path or settings :(
|
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... |
Quote:
|
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?
|
I used this a long time ago. It's real basic and will do simple password protection.
http://www.hotscripts.com/Detailed/9281.html |
AcePassword works quite well :)
|
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 |
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