Prevent Hotlinking and Bandwidth Theft
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Prevent Hotlinking and Bandwidth Theft
- Attachments
-
- prevent_hotlinking.zip
- (105.16 KiB) Downloaded 802 times
Board rules! No PM support
Re: Prevent Hotlinking and Bandwidth Theft
thanks, that was fast!
[edit]so like the post said, is this only for uploaded attachments? How can i protect other files, lets say a .flv that i have in another folder so that no one can use it only my site? can i use something like this!?[/edit]
[edit]so like the post said, is this only for uploaded attachments? How can i protect other files, lets say a .flv that i have in another folder so that no one can use it only my site? can i use something like this!?[/edit]
Last edited by cisco007 on 25 Mar 2010, 15:51, edited 1 time in total.
Reason: added a question!
Reason: added a question!
Re: Prevent Hotlinking and Bandwidth Theft
Great mod.
Working like it should
Working like it should
Re: Prevent Hotlinking and Bandwidth Theft
cisco007 » 24 Mar 2010, 21:03 wrote:thanks, that was fast!
[edit]so like the post said, is this only for uploaded attachments? How can i protect other files, lets say a .flv that i have in another folder so that no one can use it only my site? can i use something like this!?[/edit]
I would think so...
Do the same steps but the the flv folder instead, while putting the .htaccess on the flv folder and change the script so it fits
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Prevent Hotlinking and Bandwidth Theft
Yes, upload a htaccess file to the folder where the flv files is located:
Note that I just changed php with flv
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?phpbb3bbcodes.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(flv)$ ../stop.gif [L]
Board rules! No PM support
Re: Prevent Hotlinking and Bandwidth Theft
i have done it, and it don't work! Maybe have something to do with my server!
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Prevent Hotlinking and Bandwidth Theft
I think it is because the flv is cached in your browser.
Try post one in the testforum.
Try post one in the testforum.
Board rules! No PM support
Re: Prevent Hotlinking and Bandwidth Theft
Thanks for the mod stoker
Re: Prevent Hotlinking and Bandwidth Theft
Great mod, thank you for sharing.
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Prevent Hotlinking and Bandwidth Theft
Stoker » 25 Mar 2010, 21:13 wrote:I think it is because the flv is cached in your browser.
Try post one in the testforum.
Board rules! No PM support