Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-11-22, 07:53 AM   #5
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
Quote:
Originally Posted by JD View Post
And htaccess doesnt protect movies does it? Does anyone bother trying to protect hotlinking of your movies?
Movies (actually anything using java(script)) will not send header information, therefore you cannot trap calls by their source. This isn't very secure, but it is better than nothing:
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*your-domain.com/ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /* http://%{HTTP_HOST}/ [R,L]
However, for it to work, on a page someone will visit before loading a movie, you must set the cookie by putting this in the <head> section:
Code:
<SCRIPT LANGUAGE="javascript">
document.cookie = "id=valid; path=/"
</SCRIPT>
jayeff is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:40 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc