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
Return to Sender - Redirect / Reject Visits From Certain Sites/IPs Details »»
Return to Sender - Redirect / Reject Visits From Certain Sites/IPs
Version: 0.0.4, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 08-31-2009 Last Update: 09-11-2009 Installs: 25
Supported Uses Plugins
 

Make sure you check the NOTES section below!

This add-on allows you to specify domain names (or IP addresses) which you do not wish to accept links from. You have the choice to return a 404 message, redirect back to where they came (where they followed a link to your site from), display custom HTML, or redirect to another URL.

You could use this for a few different purposes. Say you suddenly get popular on slashdot or digg and your bandwidth is about to suffer - you can redirect all visitors that have clicked through on a link from said site to another URL, display them a "Too Busy" message, 404 them or just have them sent back to whence they came.

Say a dodgy site has links to your site, you could again 404, or display a "DO NOT WANT" message or just send them straight back to the referring page.

You can also just mess with people who have static IP addresses (partial addresses accepted).

Version Control
0.0.1 - Initial Release
0.0.2 - Fixed issue when having blank fields caused forum errors. Also made more lightweight (got rid of pregmatchs)
0.0.3 - Fixed another small bug
0.0.4 - OK - this time I fixed the bug :S

NOTES
WARNING
  1. Do not test with your own IP address, or domain name! You will lock your self out of your forums and will have to disable hooks to reconfigure the addon.
  2. Do not include leading HTTP:// or directory names - domain names (or partial) only!
    eg. use: evil-website.com , NOT http://evil-website.com and NOT http://evil-website.com/forum
  3. To disable the hook/plugin system, edit your includes/config.php file and place the following code on the second line (immediately below <?php) To re-enable hooks, undo the edit!
    Code:
    define('DISABLE_HOOKS', true);

Download Now

File Type: xml product-rts-0.0.2.xml (6.2 KB, 26 views)
File Type: xml product-rts-0.0.3.xml (6.4 KB, 24 views)
File Type: xml product-rts-0.0.4.xml (6.5 KB, 58 views)

Show Your Support

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

Comments
  #12  
Old 09-02-2009, 09:36 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry megatr0n - without a detailed error, I'm not sure. Did this happen when installed, after being enabled or after being enabled and being triggered by a bad IP/Domain/referrer?
Reply With Quote
  #13  
Old 09-02-2009, 09:49 PM
PinkDaisy's Avatar
PinkDaisy PinkDaisy is offline
 
Join Date: Sep 2006
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this today and CAN NOT get in my forums at all. It comes up as Page Can't Be Displayed.

How can I UNinstall this if I can't even log in?? My forums have been down all day!
Reply With Quote
  #14  
Old 09-02-2009, 09:56 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To disable all plugins which should allow you to get back into your forum, you will need to edit your /includes/config.php file and add

Code:
define('DISABLE_HOOKS', true);
immediately after
Code:
<?php
which likely appears in the first line. You can this re-configure/disable/uninstall any addons
Reply With Quote
  #15  
Old 09-02-2009, 10:03 PM
PinkDaisy's Avatar
PinkDaisy PinkDaisy is offline
 
Join Date: Sep 2006
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #16  
Old 09-02-2009, 10:08 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - found a bug of sorts which most likely is what caused Megatr0n and PinkDaisy's problems.

If you have the product enabled, you *must* have a domain listed, otherwise it will match all domains

Also, if you have IP addresses enabled - you must have at least one IP address listed - otherwise it will match all IP addresses

When writing it I guess I didn;t think that it would be enabled without actually listing criteria.

I'll get a new version up which won't trigger if no criteria are listed. 1st post updated with a warning
Reply With Quote
  #17  
Old 09-06-2009, 03:47 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When, will the new version be released?
Reply With Quote
  #18  
Old 09-09-2009, 03:37 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has now been updated to be more light weight and not cause forum errors when required fields are left blank.
Reply With Quote
  #19  
Old 09-09-2009, 10:25 AM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dartho, I have just updated to next release and I get the same error when enabling it after.
Reply With Quote
  #20  
Old 09-10-2009, 11:05 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm really not sure Megatr0n - I've tested on a couple sites (live and test) and can;t get an error to trigger.

An exact error message might help, could be a clash with another add-on?

If you like, I could look at your site and get this working, but I'd need logon and FTP details etc - PM me if you want help.
Reply With Quote
  #21  
Old 09-10-2009, 11:16 AM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Details sent.
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 02:35 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.04847 seconds
  • Memory Usage 2,323KB
  • 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
  • (3)bbcode_code
  • (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
  • (2)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
  • (3)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