![]() |
Anti-Leech Attachments - prevent hotlinking and bandwidth theft!
1 Attachment(s)
Title : Anti-Leech Attachments
Version : 1.1 Coder : Jason Williams Purpose : Prevent your forum attachments from being directly linked to - prevent bandwidth abuse. Why : Bandwidth can be expensive, plus I was frustrated with one of my members linking to three video clips on my forum from his own site, effectively abusing the bandwidth I pay for, so I set about a system that stops hotlinking, but at the same time, as a courtesy, providing a dynamic link to the post containing the attachment. How : This could be replicated very easily using .htaccess but the one thing that it can't do is give you the link to the attachment itself. This mod displays a message informing the user that hotlinking is not allowed, then giving them the link to the post to view the attachment directly. Known Issues : The security can be defeated by using the drop down style menu on the Anti Leech page - this has only been confirmed as an issue on Firefox. I have unsucessfully tried to find a way of removing the drop down on that page only. Confirmed working with vBSEO 3.2.0. Important : This has been tested on 3.6.2 and 3.8, I can presume it will be compatible with 3.7.x because it works on 3.8 - as always BACKUP FIRST! Demo : http://www.steadiforum.com/attachmen...9&d=1180779148 Installation : 1. Import Product - product-antileech.xml 2. Save bandwidth! File uploads : 0 Files to Import : 1 New Templates : 1 New Phrases : 2 Uses Hooks : 1 Uses Queries : 1 History : v1.0 - Original release v1.1 - Added enable/disable option, tested on VB 3.8 Done - if you like please click install! (and click Nominate for MOTM!) |
Reserved for future use
|
Sweet I'll test it out
Are there any settings or anything to adjust? |
i love your hacks man ...
installed |
http://www.isosdcftp.com/forums/atta...3&d=1181780809
I dont know if its working thats a link to an attachment at my site http://www.isosdcftp.com/forums/show...?p=388#post388 |
Quote:
The best way to test if it's working is copy the attachment.php link and test it in a new browser window - this is how I tested it on mine. |
its works good but if you click on the "Click here to visit the post with the attachment"
its not functioned as well with the right link ... showthread.php?p=%1$s |
Quote:
Sorry for the hassle, Jason |
yes thanks .... works good now .....
|
Works like a charm if I do as you say. I opened it in IE and got the message thanks this works great now
|
thanks..
|
this is quite awesome, thanks
|
Would one be able to view attachments if one is not a member of the site?
|
so if i understand this hack will work all browser??
|
Quote:
|
Quote:
|
Is it possible to limit Download Accelerators or Managers to download the attachments with just one connection? Most people will use these attachment links and use the download manager and abuse it, causing more bandwidth wastage.
|
HI,
I am using this mod VB Image hosting and I am not sure if the images can be hotlinked to other sites. Will your mod will work also on this? https://vborg.vbsupport.ru/showthread.php?p=1048212 VB image Hosting Mod Information Add A Comment Mark as Installed Nominate for MOTM Jump To Comments The Developer About Developer Support Developer Paypal verification - you must have an account. PayPal Verification Visit Web Site Version: 1.0.1, by Ranma2k (Coder) Ranma2k is offline |
Quote:
Jason |
Quote:
HTH Jason |
3.6.7?
|
Quote:
Cheers Jason |
Can I also request a couple extra features ^^
1. captcha - To ensure a use does not make a bot to download the image over and over to waste my bandwidth on the site, this will make each user who goes to download the image, to verify they are human first (kinda similar to rapidshare ^^ ) 2. A count down time, which can be set from the admincp per usergroup, eg. this usergroup can be 10 seconds, this usergroup can be 60 seconds, this usergroup can be no count down timer etc. (kind of similar to rapidshare ^^ ) These 2 extra features integrated into this modification would defantly get my vote for mod of the month! |
Quote:
|
Great idea! This should be a default vBulletin feature! Thanks a bunch! :)
|
Quote:
Jason |
I just gave this a try, but it would not work with my forum. 3.6.7 (VBSEO). I am guessing it was because my urls are rewritten? Not sure. It sure looks like a nice modification. Thanks for developing it Jason. If you think there is a way to make it work with re-written URLs, I will be installing it!
Regards, Kether |
Quote:
Jason |
Quote:
The attachment did not show with the modification enabled. Nothing showed. I already removed the modification from my board and was hoping that you would have a solution so that I could re-install when it was working correctly. Sorry to not have it installed any longer. Thanks, K |
Hmmmm strange, I may install it to see what happens, it does sound like a rewrite issue though, but I'm just not too sure as it may be different for attachments as it is for threads and posts.
I've added this as a Known Issue for the moment while I look into it. Jason |
Quote:
Cheers Jason |
Quote:
I will install it again tomorrow and make sure to detail the total process and effect. Thanks for working on this. I would really like for this to work! I hope it is not me being an idiot and screwing up the install. :eek: Thanks, K |
Sorry...I don't get it.
In our board attachments will show only to registered users. It's impossible to hotlink as they'll only "come up" to registered users. It's a vBulletin setting for a long time. Am I missed something here ? :confused: |
Quote:
I just felt my forum was best have guest viewable attachments so that's why I made this to prevent my bandwidth being leeched. |
Quote:
I'm just very curious if it does rewrite the attachment url. If you PM me your site details I will sign up and can test this out if you would prefer. Cheers Jason |
Very easy to install and it works very well. I already had 2 people email me saying when they clicked files on there site it sent them to my forums.
|
Nice idea. :)
Installed. |
this even work with photoplog?
|
Quote:
Taking this off Beta stage as it's been in use long enough with very few issues. |
does this work with photoplog?
|
All times are GMT. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|