Version: 1.0.5, by Krofh
Developer Last Online: Jun 2013
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.
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.
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.
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?
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?