Google Answers Logo
View Question
 
Q: Embedding Quicktime and Preventing Hotlinking ( No Answer,   1 Comment )
Question  
Subject: Embedding Quicktime and Preventing Hotlinking
Category: Computers > Internet
Asked by: tomreynolds-ga
List Price: $2.00
Posted: 14 Jul 2005 13:46 PDT
Expires: 13 Aug 2005 13:46 PDT
Question ID: 543601
How can I embed Quicktime movies on my webpage and not allow anyone to
either save OR hotlink them from another webpage. .htaccess doesn't
seem to solve the problem entirely.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Embedding Quicktime and Preventing Hotlinking
From: prasanthp-ga on 17 Jul 2005 13:53 PDT
 
Hi there.

There are quite a number of ways and techniques to protect the
quicktime movies being saved.  Apple's Website has detailed
information at the following URL:

http://developer.apple.com/documentation/QuickTime/QT4WebPage/samplechap/special-8.html

To prevent others from hotlinking to your quicktime files you need to
do the following:

First - You must set a cookie in your visitors browser BEFORE they
come to a page with the quicktime movie <embed> tag. You can not set
the cookie in the page that contains the <embed> tag.
Do this with the following javascript placed in your html <head> tag. 

var expires = new Date (); 
expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000); 
document.cookie = "mysite=yes; path=/" + "; expires=" + expires.toGMTString(); 

My suggestion is you put this several of your pages - and your homepage for sure. 

Second - Place the following code in a .htaccess file inside of the
directory where you have your movies - it can not be directly in your
public_html - you must set the cookie before a visitor comes to a
directory with this .htaccess file

RewriteEngine on 
RewriteOptions inherit 
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+.)*yourdomain.com/ [NC] 
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)mysite=yes(;.*|$) 
RewriteRule /*$ http://www.yourdomain.com/index.html [L,R] 

Remember when testing this that if your browser has the correct cookie
- you will be able to see the movie no matter where it is linked from.

(from: http://support.inmotionhosting.com/ask/viewtopic.php?p=60)

Regards,

Prasanth

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy