get ip address with cookie

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
duk
Forum Contributor
Posts: 199
Joined: Wed May 19, 2004 8:45 am
Location: London

get ip address with cookie

Post by duk »

heyas

i have un user, that is massiving creating regists im my website.. he uses a proxy... so i cant get the real ip adress..

can i use a cookie to get the real ip adress ???

i is possible give some code examples plz :D

regards
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Dont know the answer to your question so an alternative...

As part of the registration process have them enter a valid Email address. The email address is used to send them the password with which they log in for the first time. They can then change their password. Don't allow duplicate email addresses in the system but retain a log of them.

Ok some people will have multiple email accounts but then people could have multiple computers as well.

Only real downside which I know of is that people have to read their email to get into the system.

Combining this functionality with storing Ip addresses would mean less multis.
duk
Forum Contributor
Posts: 199
Joined: Wed May 19, 2004 8:45 am
Location: London

Post by duk »

im already working in activation manualy by using valid email adresses...

but im was thinking about that way the cookie geting the ip adress... tanks anyway
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

if that guy is on a proxy forget about looking for a ip. and do it the way CoderGoblin suggested.
Post Reply