This entry was posted
on Saturday, April 9th, 2005 at 10:44 pm and is filed under shorts.
You can follow any responses to this entry through the post feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
An easy way? No. But how ’bout storing the MP3 outside the webroot, and accessing it via your scripting language of choice? From there, leverage whatever session management you’ve got available to restrict access to local users.
An easy way? No. But how ’bout storing the MP3 outside the webroot, and accessing it via your scripting language of choice? From there, leverage whatever session management you’ve got available to restrict access to local users.
In CF, it’d look something like:
mymp3.cfm
=========
<cfif session.allowDownload>
<cfcontent type=”audio/mpeg” file=”c:somedirfoo.mp3” /><cfabort>
</cfif>
mypage.html
===========
<cfset session.allowDownload = true />
<a href=”mymp3.cfm”>download</a>
Now, the hotlinker in question could still get around it if he’s determined, but it would stop casual abuse.