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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!