flv hotlink test!

Use the BBCode Testarea to test our BBCodes
All testing must be done here
There is no support here! Only Read Access!
Locked
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

flv hotlink test!

Post by cisco007 »

User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: flv hotlink test!

Post by Stoker »

This is not a file uploaded with the attachment system, correct?
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: flv hotlink test!

Post 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!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: flv hotlink test!

Post 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)
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: flv hotlink test!

Post 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!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: flv hotlink test!

Post by Stoker »

Does the standard hotlink mod work for you?
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: flv hotlink test!

Post by cisco007 »

Image
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: flv hotlink test!

Post by Stoker »

Yes, it works.
But you have forgot to place the stop.gif in the root folder.
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: flv hotlink test!

Post 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!
Locked