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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.