flv hotlink test!
-
- BBCoder VI
- Posts: 1015
- Joined: 16 Mar 2010, 16:14
- Location: Don't really know!
-
- Site Admin
- Posts: 3774
- Joined: 12 May 2008, 21:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
Re: flv hotlink test!
This is not a file uploaded with the attachment system, correct?
~ The greatest achievement in life is to inspire ~
Regards Stoker
Regards Stoker
-
- BBCoder VI
- Posts: 1015
- Joined: 16 Mar 2010, 16:14
- Location: Don't really know!
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!
-
- Site Admin
- Posts: 3774
- Joined: 12 May 2008, 21:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
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)
~ The greatest achievement in life is to inspire ~
Regards Stoker
Regards Stoker
-
- BBCoder VI
- Posts: 1015
- Joined: 16 Mar 2010, 16:14
- Location: Don't really know!
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!
-
- Site Admin
- Posts: 3774
- Joined: 12 May 2008, 21:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
Re: flv hotlink test!
Does the standard hotlink mod work for you?
~ The greatest achievement in life is to inspire ~
Regards Stoker
Regards Stoker
-
- BBCoder VI
- Posts: 1015
- Joined: 16 Mar 2010, 16:14
- Location: Don't really know!
-
- Site Admin
- Posts: 3774
- Joined: 12 May 2008, 21:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
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.
~ The greatest achievement in life is to inspire ~
Regards Stoker
Regards Stoker
-
- BBCoder VI
- Posts: 1015
- Joined: 16 Mar 2010, 16:14
- Location: Don't really know!
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!