Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Anti-Leech Attachments - prevent hotlinking and bandwidth theft! Details »
Anti-Leech Attachments - prevent hotlinking and bandwidth theft!
Mod Version: 1.1, by steadicamop (Member) steadicamop is offline
Developer Last Online: Dec 2014 I like it Show Printable Version Email this Page

vB Version: 3.6.x Rating: (12 votes - 4.17 average) Installs: 189
Released: 14 Jun 2007 Last Update: 10 Jan 2009 Downloads: 860
Not Supported Uses Plugins Template Edits  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Thread Content Anti-Theft RMS-Chef vBulletin 3.6 Template Modifications 18 17 Nov 2009 19:18

Comments
  #2  
Old 14 Jun 2007, 00:43
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Reserved for future use
Reply With Quote
  #3  
Old 14 Jun 2007, 01:17
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Sweet I'll test it out


Are there any settings or anything to adjust?

Last edited by rjmjr69; 14 Jun 2007 at 01:20.
Reply With Quote
  #4  
Old 14 Jun 2007, 01:23
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
i love your hacks man ...

installed
Reply With Quote
  #5  
Old 14 Jun 2007, 01:28
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
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
Reply With Quote
  #6  
Old 14 Jun 2007, 01:55
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Originally Posted by rjmjr69 View Post
This is something I forgot to mention - the attachments on my site are guest viewable - yours require login - so unless they're a member who's already logged in using cookies, it won't make any difference.

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.
Reply With Quote
  #7  
Old 14 Jun 2007, 02:06
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
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
Reply With Quote
  #8  
Old 14 Jun 2007, 02:17
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Originally Posted by Barakat View Post
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
Ok, I've reuploaded the product xml - if you download the new version and overwrite the old one, the template should now have the necessary code to parse the url.

Sorry for the hassle,

Jason
Reply With Quote
  #9  
Old 14 Jun 2007, 02:25
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
yes thanks .... works good now .....
Reply With Quote
  #10  
Old 14 Jun 2007, 02:29
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Works like a charm if I do as you say. I opened it in IE and got the message thanks this works great now

Last edited by rjmjr69; 14 Jun 2007 at 02:33.
Reply With Quote
  #11  
Old 14 Jun 2007, 02:33
CMGU's Avatar
CMGU CMGU is offline
 
Join Date: Mar 2007
Real name: Maurice
thanks..
Reply With Quote
  #12  
Old 14 Jun 2007, 03:09
dope15gd's Avatar
dope15gd dope15gd is offline
 
Join Date: Jan 2006
this is quite awesome, thanks
Reply With Quote
  #13  
Old 14 Jun 2007, 03:14
mtlcore mtlcore is offline
 
Join Date: Jul 2005
Would one be able to view attachments if one is not a member of the site?
Reply With Quote
  #14  
Old 14 Jun 2007, 03:34
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
so if i understand this hack will work all browser??
__________________
Android Custom Creations
Reply With Quote
  #15  
Old 14 Jun 2007, 03:36
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Originally Posted by mtlcore View Post
Would one be able to view attachments if one is not a member of the site?
That is defined by your usergroups, this does not change that, merely check the referring url and if it matches carry on - but firstly it checks user permissions.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:08.

Layout Options | Width: Wide Color: