A friend writes:
I’m finding that some number of people are hosting my Janet Jackson
“movie” by simply linking it in from their sites, meaning *I* get to
pay for the bandwidth. Is there some way to prevent this?
Here’s what I’d do:
- Change your pages to refer to something called, say,
- then have a script called that that essentially does this:
echo "Content-type: image/swf";
if [ $HTTP_REFERER != $yourdomain ] then
Well, it’s slightly more complicated than that, but not by much. My only concern would be that some % of browsers don’t send referrer information so for them, even if they viewed it on your page, it’d break.
Another strategy would be to have the page that includes the movie dynamically generated to include a timestamp, then this script checks to see if the timestamp is less than, say, two hours old. That’d involve two scripts instead of one, though: one for the page that contained the link, and one for the actual delivery of the movie itself.