bodmin has asked for the wisdom of the Perl Monks concerning the following question:

is there any way to password protect a folder using apache on Unix using perl?

I have documents (gif's jpg's doc's etc) I wish to store in a secure folder. I am using cgi::session so know when a user is logged in and allowed to view the documents.

How do I only allow logged in users to view the files in the folder and not any random joe bloggs? Thought about storing the docs as BLOGs in a db, but keep getting told it is not practical for large docs.

Any ideas or suggestions, or reccomendations on places to look for more info?

Thanks,

Replies are listed 'Best First'.
Re: APACHE: Password protect folders
by Fletch (Bishop) on Jun 18, 2004 at 15:42 UTC

    Has nothing to do with perl (per se). The apache documentation covers how to do authentication rather well.

Re: APACHE: Password protect folders
by Callum (Chaplain) on Jun 18, 2004 at 15:45 UTC
Re: APACHE: Password protect folders
by hardburn (Abbot) on Jun 18, 2004 at 16:42 UTC
Re: APACHE: Password protect folders
by tachyon (Chancellor) on Jun 19, 2004 at 05:53 UTC