为什么 Internet Explorer (9) 报告“Mozilla”在用户代理中?

发布于 2024-12-13 00:08:27 字数 480 浏览 1 评论 0原文

为什么 Internet Explorer 在 UserAgent 中有 Mozilla

在 Firefox 中,它声明:

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

在 Internet Explorer 中,它指出:

Mozilla/5.0(兼容;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;平板电脑.NET4.0E; .NET4.0C)

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

了解它将会非常有帮助。

Why does Internet Explorer has Mozilla in UserAgent?

In Firefox it's stating:

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

In Interner Explorer it's stating:

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)

In some blogs/forums it's mentioned, that it is due to some historical reasons, but what's the reason?

It would be very helpful to know about it.

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

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

发布评论

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

评论(1

还如梦归 2024-12-20 00:08:27

这应该可以做到:

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

当用户访问网站时(通过网络浏览器等用户代理),
通常发送文本字符串以识别网络上的用户代理
服务器。它被称为“用户代理字符串”。网景网络
浏览器将自己标识为“Mozilla/”,后跟一些
有关其运行的操作系统的信息。

因为 Netscape 浏览器最初实现的许多功能并未实现
在其他浏览器中可用并迅速占领市场
许多网站被设计为只有在以下情况下才能工作或完全工作:
他们在用户代理中检测到适当版本的 Mozilla
细绳。因此,竞争的浏览器开始模仿(“斗篷”或“欺骗”)
该字符串以便也可以与这些网站一起使用。最早的
Internet Explorer 使用用户代理字符串就是一个例子
以“Mozilla/(兼容;MSIE ...”开头),按顺序
接收为其当时的主要竞争对手 Netscape 提供的内容
其发展。此后,用户代理字符串的这种格式已被
被其他用户代理复制,甚至在互联网之后仍然存在
Explorer 开始主导浏览器市场。

知道一切

维基也 https://superuser.com/questions/113020/why-互联网浏览器调用自身 Mozilla

this should do it:

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.

wiki knows everything

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

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