Quote:
Originally posted by Phoenix66@May 16 2003, 01:30 PM
What's a big deal to protect files from hotlinking???
htaccess:
---------
RewriteEngine on
RewriteCond %{HTTP_REFERER} !.*www.yourdomain.com.* [NC]
RewriteRule .*\.[ext1|ext2|ext3|...] - [NC,F]
----------
where ext1, ext2, ext3 - extentions of files you don't want to be hotlinked (jpg, avi, mov, and so on)
This "howto" can be found in internet in 5 minutes.
|
The prob phoenix is that the various media players do not pass a referrer...
so, yes the htacces would protect against someone accessing the files drectly from another page, but at the same time, that htaccess stops a legitimate member from accessing the file through windows media player, etc...