homepage Welcome to WebmasterWorld Guest from 174.129.103.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
Forum Library, Charter, Moderators: travelin cat

Web Video Creation and Optimization Forum

    
How to stop media hijacking
kapow




msg:3622802
 4:43 pm on Apr 9, 2008 (gmt 0)

I think my site videos are being hijacked and shown within other sites (probably MFA sites).

Why I think my site videos are being hijacked
- The videos are .wmv clips embedded in html pages,
- Stats for the .wmv files show view numbers from 6000-10,000 per month,
- while stats for the html pages (with the embedded videos) show view numbers from 400 to 600 per month,
- Thats a very big difference!
- An ordinary human site visitor would not be able to view a video without navigating to the html page that embeds it.

Does my assumption seem correct?

How can I stop media hijacking?
I have heard there are .htaccess commands that will ban access to a file if it is requested on its own (i.e. without the html file). I have heard of this technique to prevent others using your images (and hosting), but I am not familiar with the technique. Can any one tell me how to do this?

 

zacmc




msg:3663380
 2:12 am on May 31, 2008 (gmt 0)

You can prevent hot linking to your videos by adding this code to your htaccess file.


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(wmvflv)$ - [F]

Change mydomain.com to your domain.

Key_Master




msg:3663454
 5:33 am on May 31, 2008 (gmt 0)

Here's how I would code it after a little bit of modification.

RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?mydomain\.com/ [NC]
RewriteRule \.wmv$ - [F]

This won't block user-agents with blank referrer headers but it will cut down on the number of unauthorized downloads from hotlinks.

Based on the number of downloads you report, it's possible that your videos are being indexed by media bots. Maybe a robots.txt exclusion is in order for your video files. Also, you should compare the server headers for the html files and the wmv files. It's possible that browsers are caching the html files but are not caching the wmv files. If so, this can be easily fixed.

With a simple modification to the above .htaccess code, you could easily create a short promotional wmv clip and redirect hotlinkers to it. This could include free advertising for your site or info to direct the visitor on where to access the videos legitimately.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved