Get the client's computer name

后端 未结 8 1312
轮回少年
轮回少年 2020-12-20 23:47

I am getting the client\'s (website user\'s) IP address. Now I\'d like to go one step further by knowing the user\'s computer name. So far, my research has not turned up any

8条回答
  •  醉话见心
    2020-12-21 00:25

    If you're referring to the hostname (displayed for instance by the hostname command on linux) of the computer doing the request:

    That information is not included in an HTTP request. (That is, it's impossible for PHP to figure out.)

    You could do a reverse DNS lookup, but that's probably not what you want anyway.

提交回复
热议问题