Lee Kelleher’s Weblog

Just another WordPress.com weblog

How to prevent hotlinking to FLV files? (Flash Videos)

with 2 comments

My friend Shane (from DVD House of Horrors) is having a hard time trying to stop other websites hotlinking to his horror movie clips.  The site is running Joomla on a Linux server, so he’s been down the usual .htaccess routes to prevent remote hotlinking.

However the problem with FLV files is that they aren’t requested directly by the web-browser, but rather the Flash video player (a .swf file).  This causes a problem for the .htacces rules as there is no HTTP_REFERER value to restrict against.

This is causing an unnecessary hit on Shane’s bandwidth costs… so he’s desperately looking for an answer.

Any ideas are most welcome. Thanks.

Update: It seems that a lot of people have this same problem… so I suggested to Shane to turn the situation around by using the hotlinking as an advert for his site.  All his video clips are watermarked with the DVD House of Horrors logo.

I’m curious why the developers of the Flash video players don’t send a HTTP_REFERER value, but then again that’s also easy to spoof.

Written by Lee Kelleher

July 2, 2008 at 1:07 pm

Posted in blog

Tagged with , , , ,

2 Responses to 'How to prevent hotlinking to FLV files? (Flash Videos)'

Subscribe to comments with RSS or TrackBack to 'How to prevent hotlinking to FLV files? (Flash Videos)'.

  1. If he had access to the source of the video player could he not send an HTTP_REFERRER himself? THat’d quickly sort out the problem. Or add a querystring variable to the video link which is session related, so that only a valid site session can load the video, otherwise return an ad.

    Scott

    25 Sep 08 at 11:47 pm

  2. Thanks for your reply Scott. If he knew Flash/ActionScript, he’d probably do just that.

    Good idea though. Hopefully one day, the JW FLV Player might implement it?

    Lee Kelleher

    26 Sep 08 at 9:07 am

Leave a Reply