Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Prevent Multiple Registrations From Same IP Address Details »»
Prevent Multiple Registrations From Same IP Address
Version: 1.0.5, by Krofh Krofh is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-04-2006 Last Update: 04-26-2006 Installs: 46
Uses Plugins
 
No support by the author.

Prevent Registrations From Same IP Address

Description: Limits the number of users registering from the same IP address

Installation and Usage:
  • Import product-noregsameip.xml
  • Go to the ACP > vBulletin Options > User Registration Options
  • Towards the bottom of the page are your options for limiting user registrations with identical IP addresses

ACP Options:
  • Enable/disable registration or post IP limits
  • Set the number of allowed users per IP address used for registering
  • Set the number of allowed users per IP address used for posting
  • Set the error message displayed when the user limit is reached
  • Set "Allowed IP Addresses" box that is not limited by this hack, including wildcards (i.e. 192.168.0.* to allow anyone's IP starting with 192.168.0)
  • Set "Allowed Host Addresses" that is not limited by this hack, including wildcards (i.e. *.aol.com to allow anyone coming from a host ending in .aol.com)

Please click install!

Show Your Support

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

Comments
  #22  
Old 04-05-2006, 02:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this still in beta stage then?
Reply With Quote
  #23  
Old 04-05-2006, 03:11 PM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I haven't heard any problems reported, nor have I had any problems myself... so I suppose not.
Reply With Quote
  #24  
Old 04-05-2006, 03:59 PM
Pcparts Pcparts is offline
 
Join Date: May 2005
Location: Holland
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if someone lives in Qatar?
where they only have 1 ISP, which uses a proxy, and as a result everyone in the whole state shows to have the same IP.
Reply With Quote
  #25  
Old 04-05-2006, 05:09 PM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pcparts
What if someone lives in Qatar?
where they only have 1 ISP, which uses a proxy, and as a result everyone in the whole state shows to have the same IP.
If you expect to have lots of visitors from Qatar, then I don't recommend you using this hack
There is an "allowed" list though, so you could always put that one IP address in that list... this hack will then ignore that IP address.
Reply With Quote
  #26  
Old 04-06-2006, 05:25 AM
maharajah maharajah is offline
 
Join Date: Feb 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, there is an issue.

When a user registers and tries to activate... he gets this message:

Quote:
Our system shows that you have already registered under a different username. Would you like to try logging in?
.
Reply With Quote
  #27  
Old 04-06-2006, 05:38 AM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhhh, I could see that being a problem. Silly me didn't think of that, seeing how I don't use activation >.< I'll take a look at it.
Reply With Quote
  #28  
Old 04-06-2006, 05:49 AM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem fixed... sorry about that.

If you have this hack already and don't want to reinstall this, you can just modify the plugin code. Go to your Plugin Manager, and find the plugin in register_start called "Ban Registrations From Same IP Address". Replace the entire plugin code with:
Code:
if ($_REQUEST['do'] == 'register' || $_POST['do'] == 'addmember' || $_REQUEST['do'] == 'signup') {
// Get remote addr
$vbulletin->input->clean_gpc('s','REMOTE_ADDR',TYPE_STR);

// Check if user is in allowed list
$allowed = explode("\r\n",$vbulletin->options['allowed_unique_ip']);
if (!in_array($vbulletin->GPC['REMOTE_ADDR'], $allowed)) {
// are we checking for unique registration IP?
if ($vbulletin->options['force_unique_ip']) {
	// Check for existing users who registered with the same IP address
	$k_getsame = $db->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "user WHERE ipaddress='" . $vbulletin->GPC['REMOTE_ADDR'] . "'");
	// do we have more users than we should
	if ($k_getsame[total] >= ($vbulletin->options['number_unique_ip'])) {
		// error message now
		standard_error($vbulletin->options['unique_ip_req_message'],'',true,'STANDARD_ERROR_LOGIN');
	}
}
if ($vbulletin->options['force_unique_post_ip']) {
	// Check for existing users who posted with the same IP address
	$k_getsame = $db->query_read("SELECT COUNT(*) as total, userid AS userid FROM " . TABLE_PREFIX . "post WHERE ipaddress='" . $vbulletin->GPC['REMOTE_ADDR'] . "' GROUP BY userid");
	$k_temp = 0;
	while (list($k_total, $k_userid) = $db->fetch_row($k_getsame)) { $k_temp++; }
	// how many are there, is it too many?
	if ($k_temp >= $vbulletin->options['number_unique_post_ip']) {
		standard_error($vbulletin->options['unique_ip_req_message'],'',true,'STANDARD_ERROR_LOGIN');
	}
}
}
}
Or of course you can just install the new product xml.
Reply With Quote
  #29  
Old 04-06-2006, 11:13 PM
maharajah maharajah is offline
 
Join Date: Feb 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made the changes and all seems fine now

Thank you for that.

.
Reply With Quote
  #30  
Old 04-17-2006, 10:52 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting a ton users messaging us saying that they have signed up already, or at least the message says they are. Is this due to AOL? Also, if I use the include list with an entry like 207.1 will that work?

We do have many that signup everyday.
Reply With Quote
  #31  
Old 04-18-2006, 04:25 AM
Krofh's Avatar
Krofh Krofh is offline
 
Join Date: Aug 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could in fact be due to AOL, if AOL constantly is reusing IP addresses... and I'm sorry, no it doesn't currently do partial IP addresses, just full ones. How useful would having partial IP addresses be?
Reply With Quote
Reply

Thread Tools

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 04:13 AM.


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.07663 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete