Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IP ban from registration only Details »»
IP ban from registration only
Version: 1.00, by Hoth Hoth is offline
Developer Last Online: May 2005 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-17-2004 Last Update: Never Installs: 9
 
No support by the author.

The problem with IP bans is of course their tendency to lock out innocent posters with the same ISP... or in some cases, even innocent posters using the same computer as the guilty. For my purposes, I prefer to have IP bans only block registrations, and not block people from viewing/posting -- if I didn't want someone posting, I'd have banned their username in the normal way already. By having it only block registrations I merely lose a few potential new people who could've otherwise registered, but don't have the more serious problem of locking out valued existing posters and making them think they've done something bad.

This can be done with a couple very minor file edits:

Open includes/functions.php and find

Code:
function verify_ip_ban()
Replace with
Code:
function verify_ip_ban($registering = 'no')
Then find
Code:
	global $vboptions, $session;
and replace with
Code:
	global $vboptions, $session;
    if ($registering == 'no') return false;
Open register.php and find
Code:
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
Replace it with
Code:
verify_ip_ban('yes');
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
I've IP banned myself to test this. It let me post, but when I logged out and tried to register a new account it told me my IP was banned. Works in 3.00 RC 3, presumably there wouldn't be any changes to these lines in 3.00 final.

Show Your Support

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

Comments
  #2  
Old 04-19-2004, 03:31 AM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, I'll add this.
Reply With Quote
  #3  
Old 04-19-2004, 08:06 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!!!
Reply With Quote
  #4  
Old 01-19-2005, 01:30 PM
mikellogg mikellogg is offline
 
Join Date: May 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Hoth!

This is just the hack that I needed.

My site was being used as a general chat by a group that worked at the same place as a valued forum member. This way, I can ban them and keep him!
Reply With Quote
  #5  
Old 01-30-2005, 04:51 PM
glenvw glenvw is offline
 
Join Date: Nov 2001
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks good but can you tell me if it still will prevent people from registering from the big ISPs like AOL, Juno, etc?
Reply With Quote
  #6  
Old 03-27-2005, 09:42 PM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Definately trying this one
Reply With Quote
  #7  
Old 06-02-2005, 09:32 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this be modified to not allow duplicate registrations per IP address? I have had a problem with members creating multiple accounts lately. I'm sure others have this same problem too..
Reply With Quote
  #8  
Old 09-04-2005, 05:48 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I urgently need this for vB 3.5.0 RC2. Would anyone port this for me, I would be very appreciative.
Reply With Quote
  #9  
Old 09-16-2005, 09:42 PM
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well when u're use proxies, you still could register, i think you should fix it or update it, anyway this is cool hack
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 06:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12759 seconds
  • Memory Usage 2,273KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete