Posted by Ian Hobson on 11/16/07 22:35
Jean Pierre Daviau wrote:
> Hi,
>
> Is it legal to get the computer name of a client visitor?
>
> The following guives the server name? $name =
> getenv('COMPUTERNAME');
>
>
Not on my setup it doesn't.
getenv('REMOTE_HOST') would contain the name if it is sent.
Firefox does not send it. Internet Explorer does not send it.
but I'm curious.
1) You can't use the name to get back to the visitor - he is behind a
firewall.
2) You can't know the name is unique - many people name machines after
planets, so there will be thousands of "mars" and "jupiter" machines.
3) Many machines will not have a name, or the name will have meaning
only within their local network and in the protocol used there.
SO what on earth are you going to do with it if you could get it??????
Regards
Ian
Navigation:
[Reply to this message]
|