Users IP Addressez
Moderator: General Moderators
- khaki_monster
- Forum Commoner
- Posts: 73
- Joined: Tue Oct 11, 2005 12:36 am
- Location: Philippines
- Contact:
Users IP Addressez
helo pepz!
simple question("i guess"). how do i know if an IP address of Location A("192.168.0.1") is
different from an IP of Location B("192.168.0.1")?
cheerz!
simple question("i guess"). how do i know if an IP address of Location A("192.168.0.1") is
different from an IP of Location B("192.168.0.1")?
cheerz!
you can try to see
http://uk.php.net/gethostbyaddr
you can see other functions as:
http://uk.php.net/manual/en/ref.network.php
$_SERVER['REMOTE_HOST'] -> could help you to to identify dirent names in ip addres's
http://uk.php.net/gethostbyaddr
you can see other functions as:
http://uk.php.net/manual/en/ref.network.php
$_SERVER['REMOTE_HOST'] -> could help you to to identify dirent names in ip addres's
- khaki_monster
- Forum Commoner
- Posts: 73
- Joined: Tue Oct 11, 2005 12:36 am
- Location: Philippines
- Contact:
im actually thinking of making an IP blocker for my shoutbox, and im concern of
maybe im banning or blocking a wrong visitors because of having same IP's
though they belong from different Location A and B.
sorry... bout question. i know it kind'a confusing... my english grammar kind'a
limited
thanx for the responsez.
cheerz!
maybe im banning or blocking a wrong visitors because of having same IP's
though they belong from different Location A and B.
sorry... bout question. i know it kind'a confusing... my english grammar kind'a
limited
thanx for the responsez.
cheerz!
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
It is both possible, and common. AOL users, proxy visitors (think of corporate workers going through a proxy from work), kids in schools, various national proxies (Romania and Estonia both have ISP's with proxies that put all users behind one IP)...nickman013 wrote:I dont think it is possible to have the same IP address.
The list goes on. I'm excluding people spoofing, dns attacks, and other more malicious approaches that also allow it to occur.
IP addresses are not in any way reliably related to a person.
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
- khaki_monster
- Forum Commoner
- Posts: 73
- Joined: Tue Oct 11, 2005 12:36 am
- Location: Philippines
- Contact:
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
Actually that's misleading. No two machines can have the same IP address assigned to them at the same time, but multiple machines can be behind a router, or switch thus exposing themselves as the router / switch's IP address. The two machines have different IPs but are visiting you from the same IP, just like two different users using the same proxy are both going through the proxy's IP address. Your only reliable way is setting a session cookie, use PHP's built in session management and just store any info that needs to be associated with each unique user in their session. The users could still trick your system into thinking they are one person but they would have to deliberately do so, not sure if this is what you're after.
i think if you play with get-host-by-addr first you can identify proxys.. if there is a private IP, you can identify the hostname that in most cases they are diferent, because in a internal network, it cant be two machines with the same name with the same internal ip even if they are separated by a switch...
if that happens, the router ddon't know who is who...
is a good way yo start!!
if that happens, the router ddon't know who is who...
is a good way yo start!!
- khaki_monster
- Forum Commoner
- Posts: 73
- Joined: Tue Oct 11, 2005 12:36 am
- Location: Philippines
- Contact:
A quick diag for what khaki means:
at least, that's my interpretation..
Code: Select all
server --------- Router/Gateway A (ip=234.32.1.89)--------- User A (ip=192.168.2.1)
|
----------- Router/Gateway B (ip=86.56.34.12)--------- User B (ip=192.168.2.1)