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.

[img]http://img90.imageshack.us/img90/746/scripter8ko.png[/img]
http://openwings.co.cc

Re: Same Ip Address

Have you edited the function that returns a user's IP? What IP are the users showing up as?

Re: Same Ip Address

@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.');
Looking for a certain modification for your forum? Please take a look here before posting.

4 (edited by Scripter 2007-11-15 22:14)

Re: Same Ip Address

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

[img]http://img90.imageshack.us/img90/746/scripter8ko.png[/img]
http://openwings.co.cc

Re: Same Ip Address

pogenwurst: aha, good point wink

Re: Same Ip Address

Scripter wrote:
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?

[img]http://img90.imageshack.us/img90/746/scripter8ko.png[/img]
http://openwings.co.cc

Re: Same Ip Address

Yes. Ignore what pogenwurst said if that's the case. Talk to your host.

Re: Same Ip Address

Okay thanks a lot for the help, both of you.

[img]http://img90.imageshack.us/img90/746/scripter8ko.png[/img]
http://openwings.co.cc