View Single Post
Old 02-28-2006, 07:45 PM  
jayeff
Confirmed User
 
Join Date: May 2001
Posts: 2,944
Quote:
Originally Posted by SmokeyTheBear
yes i hope i didnt give the wrong impression.. if a hotlinker or you are embeding a video it wont redirect the page it will just show a broken video ( or no video ) if someone just drops a link to the video ( like in a forum ) it will do whats described above..

Most people link to the videos.. thiw wouldn't work if you ran filecabi.net , but it would work on galleries
FYI the variation on this which I first came across is at http://www.alistapart.com/articles/hotlinking and some of the comments might interest anyone who has security concerns about the php code involved.

For anyone who tries using that version for images, I had to alter one of the htaccess lines to get it to work, putting:
Code:
RewriteRule (.*) /showpic.php?pic=protected_directory/$1
in place of:
Code:
RewriteRule (.*) /showpic.php?pic=$1
ie the name of the protected directory had to go ahead of the variable.
jayeff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote