Topic: Multiple users at the same IP adress
Well, as the subject line goes, how do i allow unlimited users at the same IP adress?
Best regards,
And.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Multiple users at the same IP adress
Well, as the subject line goes, how do i allow unlimited users at the same IP adress?
Best regards,
And.
Go to register.php, comment out the query that checks if a user has registered in the past hour
Go to register.php, comment out the query that checks if a user has registered in the past hour
Thanks for your reply Smartys!
I dont know how many rows i should comment out, can you help med?
Row 80: else if (isset($_POST['form_sent']))
Thanks!
// Check that someone from this IP didn't register a user within the last hour (DoS prevention)
$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());
if ($db->num_rows($result))
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.');
// Check that someone from this IP didn't register a user within the last hour (DoS prevention) $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()); if ($db->num_rows($result)) 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.');
Thank you Smartys!
PunBB Forums → PunBB 1.2 troubleshooting → Multiple users at the same IP adress
Powered by PunBB, supported by Informer Technologies, Inc.