Prevent Hotlinking and Bandwidth Theft

Modifications for phpBB3.
Try the Mods here and share Your own Mods
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

Prevent Hotlinking and Bandwidth Theft

Post by Stoker »

Prevent Hotlinking and Bandwidth Theft

Moved: viewtopic.php?f=45&t=1306
You do not have the required permissions to view the files attached to this post.

Re: Prevent Hotlinking and Bandwidth Theft

Post by cisco007 »

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]
Last edited by cisco007 on 25 Mar 2010, 13:51, edited 1 time in total.
Reason: added a question!

Re: Prevent Hotlinking and Bandwidth Theft

Post by Fire-Fox »

Great mod.

Working like it should :)

Re: Prevent Hotlinking and Bandwidth Theft

Post by Fire-Fox »

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 :)

Re: Prevent Hotlinking and Bandwidth Theft

Post by Stoker »

Yes, upload a htaccess file to the folder where the flv files is located:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?phpbb3bbcodes.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(flv)$ ../stop.gif [L]
Note that I just changed php with flv

Re: Prevent Hotlinking and Bandwidth Theft

Post by cisco007 »

i have done it, and it don't work! Maybe have something to do with my server!

Re: Prevent Hotlinking and Bandwidth Theft

Post by Stoker »

I think it is because the flv is cached in your browser.
Try post one in the testforum.

Re: Prevent Hotlinking and Bandwidth Theft

Post by Fire-Fox »

Thanks for the mod stoker :)

Re: Prevent Hotlinking and Bandwidth Theft

Post by IpHeX »

Great mod, thank you for sharing. :)

Re: Prevent Hotlinking and Bandwidth Theft

Post by Stoker »

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.
:beat: