|
|
| Jean Pierre Daviau 2007-11-16, 7:00 pm |
| Hi,
Is it legal to get the computer name of a client visitor?
The following guives the server name? $name =
getenv('COMPUTERNAME');
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
| |
| ZeldorBlat 2007-11-16, 7:00 pm |
| On Nov 16, 4:01 pm, "Jean Pierre Daviau" <O...@WasEno.ugh> wrote:
> Hi,
>
> Is it legal to get the computer name of a client visitor?
>
> The following guives the server name? $name =
> getenv('COMPUTERNAME');
>
> Thanks for your attention.
>
> Jean Pierre Daviau
> --
> windows Xp
> asus p4 s533/333/133
> Intel(R) Celeron (R) CPU 2.00 GHz
> Processor Radeon7000 0x5159 agp
The only way you could possibly get it on the server is if the client
sent it to you. If they sent it to you it can't be illegal for you to
have it.
| |
| Ian Hobson 2007-11-16, 7:00 pm |
| 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
| |
| Jean Pierre Daviau 2007-11-17, 7:00 pm |
| 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:
> 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
>
>
>
>
| |
| Jean Pierre Daviau 2007-11-17, 7:00 pm |
|
> getenv('REMOTE_HOST') would contain the name if it is sent.
With IE it gives my IP but, my ip is changing from one day to
another and not my computer name.
| |
| Brendan Gillatt 2007-11-17, 7:00 pm |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jean Pierre Daviau wrote:
> 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.
Use cookies - that's what they're designed for =]
- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup...arch=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFHP2PZkA9dCbrNdDMRAkvjAKDTzi0fSZFS
RiRrfAIa9GqQnVlBlwCg5GpB
kawmh5irGZIUA8vBisn7TCY=
=0mH1
-----END PGP SIGNATURE-----
| |
| Jean Pierre Daviau 2007-11-18, 6:59 pm |
|
> Use cookies - that's what they're designed for =]
Yes
|
|
|
|