This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Any way to deal with multiple users registering from the same IP?


avatar
cosmin 269
From: -
I've got one such character that has about 25 accounts with the same registration IP.
Edit: I should have specified it is users registering to submit PAD files.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Any way to deal with multiple users registering from the same IP?
avatar
Administrator
1340
From: Vienna, Austria
Ok, here another quick modification.

Open /modules/users/userdoregistration.php and find:
    $insert[ 'page_keywords' ] = $preferences[ 'website_keywords' ];
$ipaddr = $system -> getip();
$error_message = "";


Then add:
    $query = $database -> dbquery( "SELECT user_id FROM " . DB_PREFIX . "esselbach_ct_users WHERE user_regip = '" . $ipaddr . "' ORDER BY user_id DESC LIMIT 100" );
if( $database -> dbrows( $query ))
{
$error_message = "<h1>Error</h1><div class=\"content\">A user with this IP address has been already registered recently.</div><br />";
}


This will check the last 100 registered users for the same IP address
1 Re: Any way to deal with multiple users registering from the same IP?
avatar
OP 269
From: -
No.
1 Re: Any way to deal with multiple users registering from the same IP?
avatar
Administrator
1340
From: Vienna, Austria
Are you using the forum integration?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.