问题
Basically I want to make sure I will always get the computer's name rather than any proxy or other hardware imbetween.
回答1:
No you cannot.
Everything the server knows about a client is only through the user agent string which the browser supplies, since users can change the user agent string and proxies may strip or modify it you cannot make any assumptions on it.
回答2:
I don't think that's always possible. If a user is using an anonymous proxy, there's really nothing you can do.
来源:https://stackoverflow.com/questions/333907/will-request-userhostname-always-give-me-the-users-computer-name