View Full Version : Gots another question.
Scrubby
Tue 30th Jul '02, 7:58pm
Can two people have the same static IP when they're from the same ISP?
rylin
Tue 30th Jul '02, 8:01pm
The short answer: yes.
A longer answer would be detailing that they could be behind a NAT, making it appear as if they're from the same IP.
It all depends on how the ISP hooks everything up really.
Scrubby
Tue 30th Jul '02, 8:08pm
Point taken. Now here is my big big question. :D.
On a forum I moderate, we have two users with the same IP from the same ISP. At first, I didn't think anything of it, until I started watching the who's online list for about 30 minutes. To my suprise, when one stopped being active, a guest then showed up, when the guest disappeared, the other member showed up. And it also went the other way around. It kept going like this until I confronted the person. I got the excuse that they're cousins.
But what got me was with all that logging in and logging out for 30 minutes between these two users. They could be behind the same computer, but why would one mnake a thread to ask one of them to turn on their PM's, if they are behind the same computer.
This oh so confusing. What should I do? :(. We're going to upload a few hacks from vB.org to dig more into this and find out what really is going on, but I jsut wanted all your opinions.
Edit: One of them is a mod, while the other one is not. Now why would the one who is not a mod, make a suggestion to the admin to make a private forum for Admins and Mods only?
That was what made me start getting curious.
rylin
Tue 30th Jul '02, 8:14pm
Which isp are "they" using?
Scrubby
Tue 30th Jul '02, 8:16pm
They're using shawcable services. That is what the host thingy ma bob on vB said. :eek:
rylin
Tue 30th Jul '02, 8:25pm
Then I'd say it's safe to say it's the same person,
unless the hostname indicates that it's a web cache / proxy.
Although, shaw have business services as well as private services..
If they work at the same company, they're most likely behind a NAT, and it'd look like they have the same static ip.
If you want to make sure though, you could write up a little something that checks for a cookie version of the userid (eg a cookie named oldbbuserid, and if the current oldbbuserid isn't blank, but differs from the current bbuserid, an email gets sent to you)..
Scrubby
Tue 30th Jul '02, 8:27pm
How would I go about writting up something like that? If you do not feel like posting it, could PM it to me? :D
rylin
Tue 30th Jul '02, 8:33pm
something along the lines of
<?php
include 'global.php';
global $bbuserinfo;
if($_COOKIE['oldbbuserid']) {
if($_COOKIE['oldbbuserid'] != $bbuserinfo['userid']) {
mail("your@e.mail","Bad oldbbuserid cookie","The stored cookie: $_COOKIE[oldbbuserid] differs from the current bbuserid: $bbuserinfo[userid]");
}
} else {
// set the cookie
setCookie('oldbbuserid', $bbuserinfo['userid'], time() + 86400);
}
?>
just put that in eg. cookieCheck.php and include it in global.php like include "cookieCheck.php";
make sure there's no spaces before or after the php tags in cookieCheck.php though :)
note, it's untested, so you might want to try it on yourself first ;)
Scrubby
Tue 30th Jul '02, 8:38pm
Okay, so I add the first part to a new file called cookieCheck.php and add the second part to the root/global.php and it may work? :D
rylin
Tue 30th Jul '02, 8:41pm
yeap, in theory it should work ;)
like i said though, test it on yourself first :o
Scrubby
Tue 30th Jul '02, 8:42pm
Okay. :). Off to test it on my site at the moment. :p. Be back with the results. :)
rylin
Tue 30th Jul '02, 8:43pm
actually, if you're not using one of the newer versions of php where the super-global arrays exist ($_COOKIE, $_GET etc), you'll want to add the following after global $bbuserinfo;
global $HTTP_COOKIE_VARS;
$_COOKIE = &$HTTP_COOKIE_VARS;
Scrubby
Tue 30th Jul '02, 8:47pm
Warning: Failed opening 'cookieCheck.php' for inclusion (include_path='') in /home/genuineo/public_html/allgta/forums/global.php on line 3
Warning: Cannot add header information - headers already sent by (output started at /home/genuineo/public_html/allgta/forums/global.php:3) in /home/genuineo/public_html/allgta/forums/admin/functions.php on line 1573
Warning: Cannot add header information - headers already sent by (output started at /home/genuineo/public_html/allgta/forums/global.php:3) in /home/genuineo/public_html/allgta/forums/admin/functions.php on line 1573
Warning: Cannot add header information - headers already sent by (output started at /home/genuineo/public_html/allgta/forums/global.php:3) in /home/genuineo/public_html/allgta/forums/admin/functions.php on line 1573
:eek:
rylin
Tue 30th Jul '02, 8:49pm
change the include string to
include "./cookieCheck.php";
Scrubby
Tue 30th Jul '02, 8:53pm
Still getting the errors. :(
rylin
Tue 30th Jul '02, 8:56pm
erm, i think i'm a bit stupid here.. 2am does that to people :P
making cookieCheck.php include global.php which includes cookieCheck.php.... whee! loop! ;)
sorry about that :o
remove include 'global.php'; from cookieCheck.php ;)
if it still doesn't work, just place the code from cookieCheck.php at the bottom of global.php
:blush:
Scrubby
Tue 30th Jul '02, 9:01pm
Adding it to the end of global.php worked! Now time to test. :D
rylin
Tue 30th Jul '02, 9:02pm
/me watches as Billy's forums explode
Scrubby
Tue 30th Jul '02, 9:06pm
Good god. I just got spammed to hell by adding that. LMAO! :D.
But what does this mean?
The stored cookie: 39 differs from the current bbuserid: 1
Does that mean that the user 39 is using the other account? :D
rylin
Tue 30th Jul '02, 9:17pm
it means that you were logged on with userid 39, and then logged in with userid 1 ;)
just realized.. you might want to add another
setCookie('oldbbuserid', $bbuserinfo['userid'], time() + 86400);
after
mail("your@e.mail","Bad oldbbuserid cookie","The stored cookie: $_COOKIE[oldbbuserid] differs from the current bbuserid: $bbuserinfo[userid]");
Scrubby
Tue 30th Jul '02, 9:50pm
Thanks for the help okidoki. :)
rylin
Tue 30th Jul '02, 9:53pm
np :)
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.