Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Anti-Leech Attachments - prevent hotlinking and bandwidth theft! Details »»
Anti-Leech Attachments - prevent hotlinking and bandwidth theft!
Version: 1.1, by steadicamop steadicamop is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

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!

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

File Type: xml product-antileech.xml (3.4 KB, 728 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-14-2007, 02:43 AM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.6.7?
Reply With Quote
  #23  
Old 06-14-2007, 06:02 AM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mrdby View Post
3.6.7?
Untested - but I think in all honesty it should work, but feedback appreciated so I can update the most up to date version.

Cheers

Jason
Reply With Quote
  #24  
Old 06-14-2007, 07:51 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #25  
Old 06-14-2007, 11:56 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mrdby View Post
3.6.7?
works perfect.
Reply With Quote
  #26  
Old 06-14-2007, 02:49 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! This should be a default vBulletin feature! Thanks a bunch!
Reply With Quote
  #27  
Old 06-14-2007, 07:04 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
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!
Will see what I can do - will release it as a sub-release if I can do this.....

Jason
Reply With Quote
  #28  
Old 06-15-2007, 01:54 AM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 06-15-2007, 02:29 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kether1 View Post
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
Can you copy and paste me a link to one of your attachments as it shows with VBSEO please? I will see what happens with the link and url....

Jason
Reply With Quote
  #30  
Old 06-15-2007, 06:23 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by steadicamop View Post
Can you copy and paste me a link to one of your attachments as it shows with VBSEO please? I will see what happens with the link and url....

Jason
Hi Jason,

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
Reply With Quote
  #31  
Old 06-15-2007, 06:44 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:54 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
  • Page Generation 0.05438 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete