Page 1 of 1
How to get client's physical address
Posted: Thu Jan 31, 2008 11:53 pm
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..

Re: How to get client's physical address
Posted: Fri Feb 01, 2008 12:27 am
by Christopher
$_SERVER["REMOTE_ADDR"]
Re: How to get client's physical address
Posted: Fri Feb 01, 2008 12:33 am
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.