-2

for the security purpose how I get visitor computer name and related details using php?

I try $_ENV['COMPUTERNAME'] it showing my server name not client computer details...

There is any option to get client computer name?

Cœur
  • 34,719
  • 24
  • 185
  • 251
user475464
  • 1,655
  • 10
  • 26
  • 37

1 Answers1

1

In normal cases, you can't. The only things you can retrieve are:

  • the data sent with the request from the browser and/or
  • the server info.

Sending the computer name as part of the request simply doesn't make sense for the browser. Also, I'm skeptical it is even possible (in a reliable way) to get it via other ways.

Amal Murali
  • 73,160
  • 18
  • 123
  • 143
Shoe
  • 72,892
  • 33
  • 161
  • 264