Topic: Same Ip Address
Everybody that is registering at the moment are using the same Ip. They have to wait 1 hour to register if someone else registered before them. Never was like this before how do I take it off.
http://openwings.co.cc
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Same Ip Address
Everybody that is registering at the moment are using the same Ip. They have to wait 1 hour to register if someone else registered before them. Never was like this before how do I take it off.
Have you edited the function that returns a user's IP? What IP are the users showing up as?
@Smartys: it sounds like he's saying that they actually do all have the same IP address (e.g. they're all connecting from the same school, office, etc.), not that PunBB is mistakenly showing users with different IP addresses as having identical ones.
If that's the case, then simply comment out or delete the following few lines of code in register.php:
82 // Check that someone from this IP didn't register a user within the last hour (DoS prevention)
83 $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
84
85 if ($db->num_rows($result))
86 message('A new user was registered with the same IP address as you within the last hour. To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.');
@Smartys: it sounds like he's saying that they actually do all have the same IP address (e.g. they're all connecting from the same school, office, etc.), not that PunBB is mistakenly showing users with different IP addresses as having identical ones.
If that's the case, then simply comment out or delete the following few lines of code in register.php:
82 // Check that someone from this IP didn't register a user within the last hour (DoS prevention) 83 $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); 84 85 if ($db->num_rows($result)) 86 message('A new user was registered with the same IP address as you within the last hour. To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.');
Okay thanks, hopefully that will work. BTW it registers from the servers ip. layeredpaneltest1.gigacities.net
pogenwurst: aha, good point
pogenwurst wrote:@Smartys: it sounds like he's saying that they actually do all have the same IP address (e.g. they're all connecting from the same school, office, etc.), not that PunBB is mistakenly showing users with different IP addresses as having identical ones.
If that's the case, then simply comment out or delete the following few lines of code in register.php:
82 // Check that someone from this IP didn't register a user within the last hour (DoS prevention) 83 $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); 84 85 if ($db->num_rows($result)) 86 message('A new user was registered with the same IP address as you within the last hour. To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.');
Okay thanks, hopefully that will work. BTW it registers from the servers ip. layeredpaneltest1.gigacities.net
Does that mean that my ban function won't work correctly?
Yes. Ignore what pogenwurst said if that's the case. Talk to your host.
Okay thanks a lot for the help, both of you.
PunBB Forums → PunBB 1.2 troubleshooting → Same Ip Address
Powered by PunBB, supported by Informer Technologies, Inc.