I think the simplest thing to do is to use http and a secured directory. I do this all the time, then tell anyone to point a browser (or wget from the command line) to the secure directory and type in user/pass. You could write a perl one-liner with
LWP::Simple to do this fairly easily.
The apache docs explain this fairly obtusely, so I just use this file in the secured directory:
# .htaccess
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Access"
AuthType Basic
<LIMIT GET>
require valid-user
</LIMIT>
and use the
htpasswd command to generate the .htpasswd file. The .htpasswd file can be somewhere outside of the web hierarchy for security. This provides some security but is far from perfect; access it over https (although we know that's not perfect either, it's better than http)
Hope that helps,
SSF
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.