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? smile

Best regards,
And.

Re: Multiple users at the same IP adress

Go to register.php, comment out the query that checks if a user has registered in the past hour wink

Re: Multiple users at the same IP adress

Smartys wrote:

Go to register.php, comment out the query that checks if a user has registered in the past hour wink

Thanks for your reply Smartys! smile

I dont know how many rows i should comment out, can you help med?
Row 80: else if (isset($_POST['form_sent']))

Thanks!

Re: Multiple users at the same IP adress

    // 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.');

Re: Multiple users at the same IP adress

Smartys wrote:
    // 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!