Posted by Jean Pierre Daviau on 11/17/07 15:16
Every times I update, or change a page and browse to check the
appearance in real time it increases the counter.
so
if (getenv('REMOTE_HOST' != "my computer name") would prevent the
counter to 'count' me.
"Ian Hobson" <ian.hobson@ntlworld.com> a ιcrit dans le message de
news: 3Xo%i.37973$uH.6667@newsfe4-gui.ntli.net...
> 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
>
>
>
>
[Back to original message]
|