flv hotlink test!
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: flv hotlink test!
This is not a file uploaded with the attachment system, correct?
Board rules! No PM support
Re: flv hotlink test!
correct, that is what i was asking about, which i think i asked about whether it would work or not it would work!
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: flv hotlink test!
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:
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)
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]
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
Re: flv hotlink test!
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!
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: flv hotlink test!
Yes, it works.
But you have forgot to place the stop.gif in the root folder.
But you have forgot to place the stop.gif in the root folder.
Board rules! No PM support
Re: flv hotlink test!
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!
all my attachments are uploaded to the files directory that is what i have it set as in the ACP!