首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
Firefox 的 UA 将移除 CPU 架构信息
2019年6月24日 16:49 | 阅读 913 次

Mozilla 计划从 Firefox 的 User Agent(用户代理)和几个支持的 API 中移除 CPU 架构信息,以减少 Firefox 用户的“数字指纹”。

Web 浏览器会自动向用户在应用程序中打开的网站显示信息,而用户代理会显示有关浏览器和浏览器版本、操作系统以及 CPU 架构等数据。

指纹识别脚本使用用户代理信息和其他信息(例如语言和位置)来创建数字指纹,指纹的准确性会随着唯一数据点的数量而增加。

不过以注重用户隐私而著称的 Firefox 表示,在 Firefox Nightly 69 版本中将不再显示来自 User Agent 的 CPU 架构信息。

Mozilla 计划使用如下的方式来区分 CPU 架构:

  1. 32-bit Firefox on 32-bit operating systems.
  2. 32-bit Firefox on 64-bit operating systems.
  3. 64-bit Firefox on 64-bit operating systems.

使用 Firefox 69 的 Firefox 用户会注意到返回用户代理的脚本将不再区分信息,在谷歌搜索“check user agent”的结果如下截图所示:

Mozilla / 5.0(Windows NT 10.0; Win64; x64; rv:69.0)Gecko / 20100101 Firefox / 69.0

此更改会影响在 64 位版本的 Windows 或 Linux 操作系统上运行的 32 位 Firefox 安装。从 Firefox 69 开始,这些版本将使用以下用户代理:

  • Linux: Linux x86_64 instead Linux i686 on x86_64
  • Windows: Win64 instead of WOW64

上述这些变更适用于 User Agent, APIs navigator.userAgent, navigator.platform 和 navigator.oscpu。

按照 Mozilla 的计划,他们会完全从 Firefox 用户代理和相关 API 中删除 CPU 架构信息,但在此过程中会进行大量测试,以避免引起兼容性问题。

(文/开源中国)    




评论 (0)
游客请输入验证码
最新评论
0
0
收藏