Version: 1.1, by steadicamop
Developer Last Online: Dec 2014
Category: Miscellaneous Hacks -
Version: 3.6.x
Rating:
Released: 06-13-2007
Last Update: 01-09-2009
Installs: 191
Uses Plugins Template Edits
No support by the author.
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!
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
I don't have VBSEO but I have just installed and tested Zoints SEO and that works fine - it does not rewrite the attachment url, only the thread/post ones - I am very curious to find out what it did to this mod ..... can you give me more of an idea what was happening?
I don't have VBSEO but I have just installed and tested Zoints SEO and that works fine - it does not rewrite the attachment url, only the thread/post ones - I am very curious to find out what it did to this mod ..... can you give me more of an idea what was happening?
Cheers
Jason
Hi Jason,
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.
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 ?
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 ?
Not at all - I designed this with my forum in mind and decided to release it, if you set your forum to allow only members to download attachments then you don't need this.
I just felt my forum was best have guest viewable attachments so that's why I made this to prevent my bandwidth being leeched.
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.
Thanks,
K
You certainly can't screw up the install - unless I screwed up the code!
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.