I just want to second the above comments about plain text and not being able to time out. The plain text issue is, of course, easily solved with an SSL connection (if you're curious about the .htaccess encoding, I describe it here). If you choose not to use SSL, make sure that you assign users passwords instead of allowing them to pick them. Then, when you assign them, make them difficult to use so they won't reuse them. Yes, they'll find that very annoying and will complain to you, but once their password gets sniffed because a non-encrypted connection was used, they'll be less likely to have reused the password elsewhere.

The timeout issue is another problem. There is no direct way to time out an .htaccess authentication. People tend to forget that one of the worst security problems lies not with some cracker in Suburbia trying to break into your box, but the disgruntled coworker sitting next to you. Walking away from an open browser with a session that doesn't time out can have serious implications, even if the data being stored is trivial.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to (Ovid) Re: Integrating htpasswd and CGI by Ovid
in thread Integrating htpasswd and CGI by George_Sherston

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.