Announcement
Collapse
No announcement yet.
only one registre per ip address
Collapse
X
-
only one registre per ip address
how can i make it so that only one user registers per ip address?Tags: None
-
Originally posted by Floris View PostThere is currently no functionality in vBulletin to do this, sorry.
all you need to do is get the ip addres from the database and do something like this:
PHP Code:$VBipaddress = $_SERVER["REMOTE_ADDR"];
$UserIP = mysql_query("SELECT VBIp FROM VB_Users WHERE VB_Ip = '$VBipaddress' LIMIT 1")or die(mysql_error()); // the querry
if (mysql_num_rows($UserIP)){$VBError = "This ip address has already been used to register";}
if (!mysql_num_rows($UserIP)){ //continue to register
Last edited by mikep; Sat 7th Jul '07, 4:21pm.
Comment
-
I am sorry but we can not provide support for customizations to the source code.
Here's our API : http://members.vbulletin.com/api I hope that helps you with your customization.
I also believe the functionality is not there for obvious reasons. There are companies, educational systems, governments, and whole countries sharing an IP or IP range. Limited one account per such instance will drastically limit the use for them.
Comment
-
and also there are isp's which will provide you with a dynamic ip address which would mean you can always get to register more than one account if this is the idea and on the other hand you could be limiting a legitimate user from registering if someone already registered with the same ip address, like Floris just said.
Comment
-
The chance of getting a dynamic ip address from a user that has already register is:
255*255*255*255/(no of user) assume number of users = 10,000
= 1 chance in a 500,000! (thats fairly low)
(thats assuming 10,000 users, and im happy with a chance in 1,000)
Also, networks assign different ip address in a range usually changing the last number for the range, so people on the same network do not get the same ip.
For instance I am on a network and my last number ends in .69, but my neighbours ip end .68. So people on the same network should not get assigned the same IP address
I actually dont want to change the code, but I am intergrating vbulletin registrtation with another product(using the vbulletin data manager), I have prevented multiple sign ups with the 2nd product , but i need to locate the stored ip address to prevent multiple sign ups via this method with vbulletin (otherwise they will register on vbull as a type of user that has the prduct on vbull, but not have the product)Last edited by mikep; Sun 8th Jul '07, 2:02am.
Comment
-
already done it (for a certain type of user), cant see why you would think this was unsafe
Comment
-
Originally posted by mikep View Post255*255*255*255/(no of user) assume number of users = 10,000
= 1 chance in a 500,000! (thats fairly low)
(thats assuming 10,000 users, and im happy with a chance in 1,000)
Not only that but what about businesses? They usually have one public IP address. There could be hundreds of employees on the other side of that firewall with an interest in your site. Even on a small home network, you can have conflicts. I share some interests with my wife and we visit some sites that are similar. She uses her computer and I use mine. They both have the same IP address as far as the remote computer is concerned, as do the other 4 PCs in my house. We don't share email, IM accounts or even phone numbers, we're not going to share a forum account. Just some separation so we can have a little privacy if we need it.
IP collision will happen on your site. Only 4 Billion IPv4 addresses in existance and they are fast running out. Maybe when IPv6 actually gets implemented around the world, then each individual device could have its own IP address.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API - Full / Mobile
Vote for your favorite feature requests and the bugs you want to see fixed.
Comment
-
Since installing the Multiple Login Detector mod, I can tell you from personal experience many families seem to use each other's computers.
So it's a Really Bad Idea to ban someone from registering (or posting) from the same IP addy as someone else.
Comment
-
This could be a problem in the future for your site.
DSL users IPs are changed regularly so its not unheard of for multiple people with in a area to have the same IP.
They won't have it at the same time but if a person registers under an IP and a week later their IP will rotate and another person will have it and you just blocked that person from joining your site.
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment