I've protected my image files from being hotlinked, but it doesn't seem to work for movie files. How do I prevent movies from being hotlinked? I've found a code that uses cookies but I'm not sure if it works for those who don't allow cookies.
preventing hotlinking of movies
Collapse
X
-
Tags: None
-
-
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{REQUEST_URI} !^/banners.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|mpeg|mpg)$ http://%{HTTP_HOST}/ [R,NC,L]
replace the domain.com with your domain and add this to .htaccess
Also the above code get's modified by GFY and a haha goes in, if you want the code hit me up on ICQ and i'll send it that wayLast edited by xxxoutsourcing; 09-21-2004, 11:58 AM.
xxxoutsourcing.com
ICQ:119936 | Aim:xxxoutsourcing | MSN:msn@ xxxoutsourcing.com | Yahoo:xxxoutsourcing
Submitters, Designers, Programmers, Cartoonist, Creative Writers, Video & Photo Editors
Convert your Paysite into a cartoon site convert2toons.comComment
-
Originally posted by xxxoutsourcing
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{REQUEST_URI} !^/banners.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|mpeg|mpg)$ http://%{HTTP_HOST}/ [R,NC,L]
replace the domain.com with your domain and add this to .htaccess
Also the above code get's modified by GFY and a haha goes in, if you want the code hit me up on ICQ and i'll send it that way
I thought that it had no effect on mpegs ...
Comment
-
video files are handled differently then images ... because alot of browsers will call an external program when they encounter them, the referrer URL isn't always sent to your browser.
I think .htaccess like restrictions would work fine with embeded videos, but if you directly link the file, you have to have a special script to handle if the requester has visited the site recently to verify if they being hotlinked or not.Comment
-
-
Some good questions for sure
Hope you find an answer
Regards,
LeeComment
-
-
It doesn't. Most of these outsourcing people here are clueless.Originally posted by AlexShark
I thought that it had no effect on mpegs ...I like pie.Comment


Comment