Would like a script like the one here. I have tried many different times to get it to work on my own and failed so i guess im doing something wrong. I only want to protect members.html But I want to be able to setup many usewrnames and passwords but I dont know how to do it im not sure how to set it up either so if anyone could help me or recommend a php script to buy that works pleas let me know.
Thanks for the time, effort and help
Need badly
Moderator: General Moderators
question is, wether you need php to do this. If your site runs on an apache webserver (or another capable of .htaccess) the mechanism described at http://www.apacheweek.com/features/userauth is sufficient.
i know that the AllowOveride must equal All or AuthConfig but i still can get it to work. i want to protect /members/ ( C:\Program Files\Apache Group\Apache 2\httdocs\members\ ) but I cant get it at all ive set up my administrator .htaccess / .htpasswd files and place them into my /members/ dir but no luck i still can access herewith no promt for authorization. Thanks for all the help
[edit]
I got it to work but its not letting me log in now Also i wanted to add more user names any ideas? Thanks for all the help i would have been able to do it without everyones feedback
[edit]
[edit]
I got it to work but its not letting me log in now Also i wanted to add more user names any ideas? Thanks for all the help i would have been able to do it without everyones feedback
[edit]
here is my .htaccess file is this right??
Code: Select all
AuthUserFile members/.htpasswd
AuthGroupFile /members/
AuthName "Private"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>After many problems ive gotten .htaccess to work. Thanks for everyone that helped me. I only have on problem left I made the .htacces file but i cant login now my protected dir is /members/ and i placed the .htaccess & .htpasswd into it am i doing someting wrong? or do i neeed to make changhes to httpd?
Code: Select all
AuthUserFile members/.htpasswd
AuthGroupFile /
AuthName ".::::: Members Login :::::."
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>