Will Request.UserHostName always give me the user's computer name?

寵の児 提交于 2019-12-11 07:48:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!