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!
Hmmm this is odd, I will download the mod again and re-install it on my forum, the option is definitely there on mine, not too sure what's happening here.....
Hmmm this is odd, I will download the mod again and re-install it on my forum, the option is definitely there on mine, not too sure what's happening here.....
Actually this is only working for browsers where the referer is passed back to the site. This won't work for anyone using a proxy or a multiple proxy with altering hostnames. Be aware of this.
Or is there any difference like some additional check ? Reading the addon, if I understand it right you parse HTTP_REFERRER too via PHP, doing it directly via the Server is maybe less portable, but maybe also faster that PHP doesn't need to be called everytime.
Angel-Wings, is it possible to display an alternative image for advertising your site instead of a plain red X - In this way it's free advertising for your site by linking to an alternative hotlink image?
I've had a go with copying some other code for .htacess from another hotlinking post on here but couldn't get it to work because I assume it only works on the filetype stated rather than the attachments. Code I used as below:
Same here!!! I've tried importing the product again yet nothing has changed, attachments can still be hotlinked? Also like you say, there is no option in admin CP!