News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Detecting Multiple Accounts

Started by Mike Bobbitt, April 22, 2005, 11:22:50 PM

Previous topic - Next topic

Mike Bobbitt

Looks like you need help from the mod or SMF folks from here... I'd be tempted to revert back to a clean SMF install, as something that has been changed is causing problems.

jrstark

This works great!

Any tips on separating out all the AOLers?

Mike Bobbitt

Unfortunately if a lot of people appear to be sharing the same IP pool (such as AOL) there's not too much that can be done other than manaul investigation of suspicious accounts. The script itself is pretty simplistic in it's approach.

SleePy

i get this error "Hacking attempt..."
while running it. any ideas?
i think i got all the information correct. i copied most of it like  the db_name out of my settings.php and i put it in the same directory as forums so my require is just require('SSI.php');
this is on my test site so i dont need to worry about it right now.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Sheepy

May be we can extend the search fulltext index function to do an word statistic for each users, one of the techniques of stylometry?

unrelenting

I get:

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

jerm

Open up a new topic. Bumping posts that are a year old doesn't help.
Nor does your post help at all.

vconcept

I get this error :

QuoteMultuple Accounts
This script discovers users who have potentially created multiple accounts by checking for IP addresses where multiple accounts have been seen.


Fatal error: Call to undefined function: show_topofpageads() in /home/www/xxxxxxxxxxxxxxxxx/web/smf/Sources/Load.php(1724) : eval()'d code on line 202

Davy-D

This script is soooooo nice. Exactly what I have been looking for.
Keep up the great work.

Davy-D

mersindost

Quote from: vconcept on January 22, 2007, 03:03:10 PM
I get this error :

QuoteMultuple Accounts
This script discovers users who have potentially created multiple accounts by checking for IP addresses where multiple accounts have been seen.


Fatal error: Call to undefined function: show_topofpageads() in /home/www/xxxxxxxxxxxxxxxxx/web/smf/Sources/Load.php(1724) : eval()'d code on line 202

Yes.İ have same problem  :-[

require('/var/www/html/forum/SSI.php'); What i can write here?

my site url: www.videotr.net/forum   (linux host) /domains/videotr.net/public_html/forum/

I Am Simple Machines Hero, Because I LOVE Simple Machines

Dreadfull

Mike Bobbitt, edit line 16

echo "<h1>Multuple Accounts</h1>\n";

should be

echo "<h1>Multiple Accounts</h1>\n";


:) just a thought .. also, great job.

JungleBunny

Got the same error :-* :-*

Fatal error: Call to undefined function: show_topofpageads() in /var/www/****/****/BORD/Sources/Load.php(1792) : eval()'d code on line 147

Line 147 says:

// Most database systems have not set UTF-8 as their default input charset.
        if (isset($db_character_set) && preg_match('~^\w+$~', $db_character_set) === 1)
                db_query("
                        SET NAMES $db_character_set", __FILE__, __LINE__);


Any ideas ??????

Would be a fantastic script.


cmcmom

I just wanted to explain what I do for this without any code.  When I get a new applicant I trace the IP before acceptance to see if any other posts or user has that IP.  This would have saved a LOT of headache and heartache at my old board.

kasparh

i know this is a very old topic, but the script is fascinating.
I'm tryng to extend the use of the script to another group that not is administrator.
How can i do that ?
I find this piece of code on the script, but i don't know how to personalize with another group name for example "guard"

Quote
   // Set this to restrict access. Currently only admins are allowed.
   $isstaff = $user_info['is_admin'];
}

if (!$isstaff) {
   echo "ERROR: You are not permitted to run this script.";
   if ($armyca) {
      include "$include_dir/footer.php";
   }
   exit (1);
}

any help very much appreciated

Mike Bobbitt

Basically you can set $isstaff = TRUE for any user you want to have access. Some sample code that might help pick out a specific group:

// Detect group membership
function getGroups($userid = 0) {

global $context;
global $smcFunc;

// If no userid was passed in, check the currently logged in user
if (!$userid) {
$userid = $context['user']['id'];
global $isadmin;
}

$isstaff = 0;

// Staff group IDs
$staffgroup_ids = "1,2,20,21";

// Reformat staff IDs into regex
$staffgroups = "(" . join("|", explode(",", $staffgroup_ids)) . ")";

$result = $smcFunc['db_query'] ('', "SELECT m.id_group, m.additional_groups FROM {db_prefix}members AS m WHERE m.id_member = {int:id_member}", array (
'id_member' => $userid
));

while ($res = $smcFunc['db_fetch_assoc'] ($result)) {
$groups = $res['id_group'];
if ($res['additional_groups']) {
$groups .= "," . $res['additional_groups'];
}

$groups = ",$groups,";

// Staff
if (preg_match("/,$staffgroups,/", $groups)) {
$isstaff = 1;
} else {
$isstaff = 0;
}
}
$smcFunc['db_free_result'] ($result);

return $isstaff;
}


In this example, anyone in group numbers 1, 2, 20 or 21 will have access to the tool.

kimcarter14

That's quite unfair for other members here. And what's the reason why they registered multiple accounts here?

Mike Bobbitt

Not sure I understand... What is unfair?

Advertisement: