are all ip addy's unique??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

are all ip addy's unique??

Post by Jade »

Are are all ip addy's unique?? I'm not quite sure and from what I can gather the answer is no. Anyone want to help me out on this one?

If they aren't all unique does anyone know a good way to track users? For instance, I want to make sure people don't join my site twice but I'm hesitant to use IP address... I would use cookies but they can be deleted. Any ideas?

Jade
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

unfortunately you're outta luck

even if you did try and block by IP address someone can use a proxy server and come in on a different IP, cookies can be deleted yep.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Cookies: Impossible. They are deletable and what if someone uses a different browser/computer?

IP: Bad. Most peoples addresses change contsantly, even if you have high speed it's changing a few times a month (in most cases).

Email: Horrible, yet ok. If it's that important you don't want someone to join twice, don't use this. Otherwise this is the best bet. Store the emails in a db, then send an authorization code to the address on registration. You will need to keep a log of the logins from each account and which IPs they use to make sure they don't have multiple accounts.

That is the security measure i'm taking for a site i run. It's an online game and it's critial nobody has more than one empire.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

IP addresses unique? No.

ie: the ip in which the internet sees of my computer is the IP to my router, and the IPs using my router are the real IPs, but are unusable on the internet.
Image Image
Post Reply