本文介绍了Request.UserHostName会不会给我用户的计算机名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想确保我总是得到计算机的名称而不是任何代理或其他硬件。

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

推荐答案

不,你不能。

服务器对客户端的了解只是通过浏览器提供的用户代理字符串,因为用户可以更改用户代理字符串,代理可能会删除或修改它你不能对它做任何假设。

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.

这篇关于Request.UserHostName会不会给我用户的计算机名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 06:18