Topic: A new user was registered with the same IP address as you one hour ago

How do I get rid of this thing?

Re: A new user was registered with the same IP address as you one hour ago

Comment out or remove this code from register.php:

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

Re: A new user was registered with the same IP address as you one hour ago

Thank you!

4 (edited by abish 2007-02-26 04:07)

Re: A new user was registered with the same IP address as you one hour ago

thanks man. but how do i decrease the time from 1 hour to 10 minutes?
change 3600 to 600?

Re: A new user was registered with the same IP address as you one hour ago

Yes.

6

Re: A new user was registered with the same IP address as you one hour ago

sir, and how do i change
"Bad request. The link you followed is incorrect or outdated."
to
" You arent able to see this because you arent a registered user. Please register" ?

in those forums where guests arent allowed to see anything.

Re: A new user was registered with the same IP address as you one hour ago

abish wrote:

sir, and how do i change
"Bad request. The link you followed is incorrect or outdated."
to
" You arent able to see this because you arent a registered user. Please register" ?

in those forums where guests arent allowed to see anything.

Bad request isn't what's shown when people are guests and can't see anything