View Single Post
Old 07-17-2005, 02:29 PM  
iwiiiiiiiiii
Outside The Box Geek
 
Industry Role:
Join Date: Oct 2004
Location: MTL/Canada
Posts: 550
Here what I use.


Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteRule .*\.(mpeg)$ http://www.domaintoforward.com/ [R,NC]


the domain.com is the domain that you allow video viewing. The Rewriterule is where you want to forward traffic from the website that is hotlinking you, like a paysite. You can also add hotlink.jpeg that the end with a message.

the mpeg is the ext of the files you want to protect.

Work very fine for me, but I'm using it on my httpd.conf with directory condition

<Directory /.../.../.../>
</Directory>
__________________
The second time the dog bites you, it's not his fault.
iwiiiiiiiiii is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote