From: Rob Hill (robhill at domain indigo.ie)
Date: Tue 10 Aug 1999 - 11:18:11 IST
kevin lyda wrote:
>
> no, but a cgi (or similar) script might work:
>
> lets say a page has this structure:
>
> foo.html (contains foo.mp3)
>
> foo.html could become foo.cgi that updates a file with a key, and the
> mp3 link could become foo.mp3.cgi?key. when that link gets followed
> the foo.mp3.cgi link could remove the key and deliver the mp3 file.
> if the key passed to the foo.mp3.cgi file was invalid, it would fail.
>
If I was going the cgi route, the cgi would just check the referrer, and give out the file based on that (much easier) but i was hoping that there would be an easier (apache) method, as the site's not
mine, and I would have to write the cgi, as the person involved er......couldn't.
> i'm sure there are more efficient varients on the theme (instead of a
> key in a file, it could be a file in a directory; some sort of server
> side includes could be used (shtml?), etc.), but that's the general
> solution that springs to mind.
hang on - is there a shtml (parsed html)option?
if env_referer = http://ripped/off/site
print "f**k off"
(my parsed html's not up to par)
>
> less exact would be to change the name of the mp3 file every few
> hours with a cron job and update the html file with the correct name.
> sed is your friend here.
>
was just considering that, actually - less pain involved for me anyway ;o)
thanks kevin
rob
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:26 GMT