What about something like this?
Add this rule to your .htaccess file in your movie directory:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^
http://([a-z0-9-]+\.)*yourdomain.com/ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$
http://www.yourdomain.com/ [L,R]
Or add this one:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^
http://yourIPaddress/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^
http://www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$
http://www.yoursite.com [L,R]
Place the cookie script below between the <head> </head> HTML section of the index.html
<SCRIPT LANGUAGE="javascript">
// Calculate the expiration date</font>
var expires = new Date ();</font>
expires.setTime(expires.getTime() + 1
* 60 * 60 * 1000);
document.cookie = "id=valid; path=/" +
"; expires=" + expires.toGMTString();
</SCRIPT>