Need script to protect .wmv video files
Using .htaccess and that doesn't stop wmv files from being linked to from other sites or people cutting and paste it into browser.
seeking cgi/perl that prevents people accessing the wmv files
thanks
Jon
Printable View
Need script to protect .wmv video files
Using .htaccess and that doesn't stop wmv files from being linked to from other sites or people cutting and paste it into browser.
seeking cgi/perl that prevents people accessing the wmv files
thanks
Jon
Well there is this script...
http://www.antihotlinking.com
Although i was always under the impression you could use .htacess to stop hotlinking of movies by altering the code.
http://www.arsresources.com/articles...s-movies.shtml
Regards,
Lee
If I try to use the following, I get "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."
AuthType Basic
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.gayteenmale.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://gayteenmale.com/ [NC]
RewriteCond %{HTTP_REFERER} !=""
RewriteCond %{HTTP_COOKIE} !^.*ssid=valid.*$
RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM| wmv|WMV)$
http://www.mydomain.com/403.htm [R,L]
Any free scripts available?
You might want to check with your host that they allow wmv protection in .htaccess i know a few of them dont.
Regards,
Lee
Lee speaks wisely! You should contact your host and get the proper way to protect your files since sometimes there are specific lines in the htaccess file that you have to use, plus sometimes the server itself is not setup to "AllowOverride". If your host does not help you or does not know how to help you, its time to look around for a quality hosting company that will help you!
cheers,
Luke
No my host says you can't protect movie files using .htaccess
quote:
"movie players do not pass back a valid page referrer"
Waiting for a tech guy who gets back on Monday, he maybe able to help me with setting up a script.
thanks
Jon
You might want to take a look at this program:
Robot Control Pro
I'm pretty sure Rene sells one site license for $25.00 and I know it stops .wmv hotlinking. He's also top notch in the customer care dept!
Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !=""
RewriteCond %{HTTP_COOKIE} !^.*ssid=valid.*$
RewriteRule .*\. (gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM|wmv|
WMV)$
http://www.yourdomain.com/403.htm [R,L]
Insert this in between your tags on the movie page..
script
type="text/javascript" language="Javascript">
var expires = new Date ();
expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
document.cookie = "ssid=valid; path=/" + "; expires=" + expires.toGMTString();
script
script
type="text/javascript" language="Javascript">
var expires = new Date ();
expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
document.cookie = "ssid=valid; path=/" + "; expires=" + expires.toGMTString();