Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,我想确保我将始终获得计算机的名称,而不是中间的任何代理或其他硬件。
你不能。
服务器所知道的关于客户端的一切都只能通过浏览器提供的用户代理字符串,因为用户可以更改用户代理字符串,代理可能会删除或修改它,你不能对它做任何假设。
我不认为这总是可能的。如果用户使用匿名代理,那么您真的无能为力。