Request.UserHostName 总是会给我用户的计算机名称吗?

发布于 2024-07-09 02:20:18 字数 43 浏览 2 评论 0原文

基本上我想确保我始终会获得计算机的名称,而不是中间的任何代理或其他硬件。

Basically I want to make sure I will always get the computer's name rather than any proxy or other hardware imbetween.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

離人涙 2024-07-16 02:20:18

你不能。

服务器了解的有关客户端的所有信息都只能通过浏览器提供的用户代理字符串来实现,因为用户可以更改用户代理字符串,而代理可能会删除或修改它,因此您不能对其做出任何假设。

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.

我只土不豪 2024-07-16 02:20:18

我认为这并不总是可能的。 如果用户使用匿名代理,您实际上无能为力。

I don't think that's always possible. If a user is using an anonymous proxy, there's really nothing you can do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文