Louis Posted April 25, 2010 Report Posted April 25, 2010 Does anybody know how i can protect my flv and avi files from being used by another website? Quote
Brian Posted April 26, 2010 Report Posted April 26, 2010 You should be able to do this via .htaccess: RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteRule \.(flv|avi)$ - [NC,F,L] If you want to display a custom message and what not, in the third line there replace the '-' with: RewriteRule \. (flv|avi)$ http://yourdomain.com/customimage.jpg [NC,F,L] Obviously replace http://yourdomain.com/customimage.jpg with the proper URL You can also add any extension type in the third line there to modify / customize your needs. Hope this helps (and works ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.