Page 1 of 1

flv hotlink test!

Posted: 26 Mar 2010, 19:56
by cisco007

Re: flv hotlink test!

Posted: 26 Mar 2010, 20:00
by Stoker
This is not a file uploaded with the attachment system, correct?

Re: flv hotlink test!

Posted: 26 Mar 2010, 20:17
by cisco007
correct, that is what i was asking about, which i think i asked about whether it would work or not it would work!

Re: flv hotlink test!

Posted: 26 Mar 2010, 20:32
by Stoker
As you have figured out it will not work.
I suggest that you upload your flv files in another folder and upload this htaccess file to it:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(flv)$ ../stop.gif [L]
and offcourse replace yourdomain.com/ with your actual domain name.

Lets say you also want to protect avi files placed in that folder.
Then just change this part: (flv) to (flv|avi)

Re: flv hotlink test!

Posted: 26 Mar 2010, 20:49
by cisco007
yeah, that is what i did, but i will move them to the download folder or to a media folder i made for some of my media player bbcodes!

Re: flv hotlink test!

Posted: 26 Mar 2010, 20:51
by Stoker
Does the standard hotlink mod work for you?

Re: flv hotlink test!

Posted: 26 Mar 2010, 21:02
by cisco007
Image

Re: flv hotlink test!

Posted: 26 Mar 2010, 21:58
by Stoker
Yes, it works.
But you have forgot to place the stop.gif in the root folder.

Re: flv hotlink test!

Posted: 26 Mar 2010, 22:08
by cisco007
it's there i was just using another image! on the root!

all my attachments are uploaded to the files directory that is what i have it set as in the ACP!