gpt4 book ai didi

internet-explorer - 为什么 Internet Explorer (9) 在 UserAgent 中报告 "Mozilla"?

转载 作者:行者123 更新时间:2023-12-03 05:35:54 27 4
gpt4 key购买 nike

为什么 Internet Explorer 在 UserAgent 中有 Mozilla

在 Firefox 中,它指出:

Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

在 Inter Explorer 中,它指出:

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0E; .NET4.0C)

在一些博客/论坛中提到,这是由于某些历史原因造成的,但原因是什么?

了解它会很有帮助。

最佳答案

这应该可以做到:

http://en.wikipedia.org/wiki/Mozilla

When users visit a website (via a user agent such as a web browser), a text string is generally sent to identify the user agent to the web server. It is known as the "user agent string". The Netscape web browser identified itself as "Mozilla/" followed by some information about the operating system it was running on.

Because the Netscape browser initially implemented many features not available in other browsers and quickly came to dominate the market, a number of web sites were designed to work, or work fully, only when they detected an appropriate version of Mozilla in the user agent string. Thus, competing browsers began to emulate ("cloak" or "spoof") this string in order to also work with those sites. The earliest example of this is Internet Explorer's use of a user agent string beginning "Mozilla/ (compatible; MSIE ...", in order to receive content intended for Netscape, its main rival at the time of its development. This format of user agent string has since been copied by other user agents, and persisted even after Internet Explorer came to dominate the browser market.

维基知道一切

还有https://superuser.com/questions/113020/why-does-internet-explorer-calls-itself-mozilla

关于internet-explorer - 为什么 Internet Explorer (9) 在 UserAgent 中报告 "Mozilla"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7975996/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com