简体   繁体   English

使用 localstorage 绕过 3rd 方 cookie 规则

[英]Using localstorage to bypass 3rd party cookie rules

In light of 3rd party cookies being disallowed for tracking / marketing purposes, what would prevent a 3rd party from simply creating a local storage entry under child.com within an iframe (main page in URL being parent1.com), where the same child.com local storage value is available when the user browses to parent2.com that also has child.com under an iframe? In light of 3rd party cookies being disallowed for tracking / marketing purposes, what would prevent a 3rd party from simply creating a local storage entry under child.com within an iframe (main page in URL being parent1.com), where the same child. com 本地存储值在用户浏览到 parent2 时可用。com 也有 child.com 在 ZA598E4F2AFAD9DF282F 下

Wouldn't child.com (being an ad company or store) be able to track the user across various parent domains, where the javascript in the child.com iframe reads whatever local storage value and sends it up to child.com? Wouldn't child.com (being an ad company or store) be able to track the user across various parent domains, where the javascript in the child.com iframe reads whatever local storage value and sends it up to child.com?

Using local storage does not bypass 3rd party cookie rules;使用本地存储不会绕过 3rd 方 cookie 规则; It is subject to exactly the same rules as cookies are.它遵循与 cookies 完全相同的规则。 The applicable law (the EU Electronic Privacy Directive 2002) does not specify technical measures, only the resulting impact on privacy.适用的法律(2002 年欧盟电子隐私指令)没有具体说明技术措施,只说明由此产生的对隐私的影响。 Cookies are simply the most common approach to user tracking, so they are what gets all the attention – especially since they are widely abused. Cookies 是最常见的用户跟踪方法,因此它们备受关注——尤其是因为它们被广泛滥用。

So it makes no difference how you achieve your tracking;因此,如何实现跟踪没有区别; you're going to need consent or some other legitimate basis for collecting the data.您将需要同意或其他合法依据来收集数据。 If you think you've found a clever technical loophole, you haven't.如果你认为你发现了一个巧妙的技术漏洞,那你就没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM