This bit of code, to be inserted into index.php would prevent the table from growing insanely large, by checking to make sure that the current user only has a particular IP logged once:
Code:
if (isset($bbuserid)) {
$ipquery = $DB_site->query("SELECT userip FROM userips WHERE userid='$bbuserid' AND userip='".getenv("REMOTE_ADDR")."'");
if ($DB_site->num_rows($ipquery) == 0) {
$result = $DB_site("INSERT INTO userips (id, userid, userip) VALUES ('', '$bbuserid', '".getenv("REMOTE_ADDR")."')");
}
}
This would require the creation of a new mysql table called
userips with the following fields: id (int10 perhaps?), userid (int10), userip (varchar15).
Then it would just be a matter of coding a simple control panel to query the table for duplicate IPs.