I have a multi-user site where users can upload info to their personal areas, and I want to be sure enough that they can't upload stuff to, or otherwise mess with, each other's areas.
Since my server is Apache, my plan is to use htpasswd to protect the user areas. So when they log on to the site they enter their htpasswd user and pwd, and then I use
$ENV{REMOTE_USER} to track who's who and allow the right people the right access.
I like this because htpasswd handles all the encrypting for me. I can see one pitfall I have to guard against - making sure that new users don't take old users' user names; but that need not present a problem. But before I go ahead, I should be very grateful for any words of wisdom / other pitfalls.
And I also have a
specific question, for which I crave your indulgence, namely is it possible to send pwd / user info to htpasswd via a CGI form, rather than using the automatically generated dialogue box that the web browser throws out? It wd just be nice to integrate password entry into the overall aesthetic of the site.
§
George Sherston