View Single Post
Old 05-16-2003   #13
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

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...
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote