我今天更新到 Firefox 40,我在我的 Firebug 控制台中看到一条简洁的新消息:
Found hi-entropy localStorage: 561.0263282209031 bits http://localhost:8080/my_app_path itemName
...其中 itemName
是我保存在 localStorage 中的特定项目的名称。
引用的行号总是没有帮助:主要 HTML 文档的最后一个(它是一个单页应用程序)。
为什么会这样?如果你想要我的“hi-entropy localStorage”的例子,这里是有问题的数据:
Object {
id: "c9796c88-8d22-4d33-9d13-dcfdf4bc879a",
userId: 348,
userName: "admin"
}
最佳答案
您的浏览器有 Privacy Badger 插件 (1.0),它可以 detect some types of super-cookies and browser fingerprinting .它将您的本地存储项目识别为误报并生成了那些神秘的日志。
高-entropy字符串可以被模糊地定义为复杂的、难以猜测/重复的,或者可能包含有意义的信息。如果您的本地存储中有这样一个字符串(在您的示例中为项目 ID),广告商可能会将其放在那里以唯一标识您。 Privacy Badger 有粗略的方法来估计字符串的熵,开发人员 discuss here .
你应该看看论文 The Web never forgets: Persistent tracking mechanisms in the wild ,尤其是关于 cookie 同步的部分:
Cookie synchronization or cookie syncing is the practice of tracker domains passing pseudonymous IDs associated with a given user, typically stored in cookies, amongst each other.
关于javascript - 火狐 40+ : what does the "Found hi-entropy localStorage" message mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31953321/