How to get client's physical address

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
NilayKomal
Forum Newbie
Posts: 5
Joined: Tue Jan 29, 2008 10:39 pm

How to get client's physical address

Post by NilayKomal »

Hello frnds,
I m writing a php script which requires the physical address of client's machine for veryfication. So if you could help me in getting physical address of client. Plz help if you find any related code.. :?:
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to get client's physical address

Post by Christopher »

$_SERVER["REMOTE_ADDR"]
(#10850)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: How to get client's physical address

Post by Kieran Huggins »

There's this thread:
http://forums.devarticles.com/general-p ... -1846.html

BUT

due to the nature of how the net works, you can't be guaranteed that the MAC address you get back will be the one of the client machine. It may be from any NAT or gateway in between.

In short, this is a very poor way to identify a specific client.

You could try cookies, but I would be more inclined to just use a user account and a non-anonymous e-mail address (like the one they got from thheir ISP, work or school... no hotmail, yahoo, gmail, etc). There must be a blacklist of them somewhere you could check against. I've used this approach and found it works well enough to render the problem extremely manageable.

Personal accountability alone is a wonderful motivator for good behaviour.
Post Reply