Onebox Iframe/Cookies e.g. Vimeo (GDPR)

I totally like the QoL oneboxes bring to the Discourse users. However, i stumbled upon the following ‘issue’:

  • While Youtube for example is embedded via LazyYT and therefore doesn’t load the iframe and attached cookies until the users presses play, this functionally seems to be absent for every other player onebox.
  • Vimeo for example loads the entire iframe, player and cookies on page load

Therefore my question: Is it planned to replicate the LazyYT functionality on other oneboxes like Vimeo or how would be the best way to go about it on my own. I am aware that i am able to simply blacklist Vimeo and the like which only should be my last resort, though.

I know it is debatable if this is necessary to comply with GDPR, but nonetheless I think better control over embedded 3rd party content would be worthwhile as the LazyYT example shows to some extent.

6 个赞

I know we are all dealing with lots of GDPR edge cases, but not sure what the Iframe risk is? AFAIK Iframe cannot access parent cookies?

I may be wrong of course…

3 个赞

As I see it every of those iframes transfers IP, and load third-party non-essential cookies for every user (also not registered ones) before they are able to agree with that.

Apart from that especially topics with multiple embeds could run into performance issues when for example 10 players are loading at the same time.

LazyYT does it pretty fine I think, and Preview in post creation. (Option for a 3rd party hint on top of the preview image could be helpful, too)

2 个赞

I’ve noticed a few European websites now let the user decide whether they want to see embedded content. This is especially useful for sites that are known to follow you around the web and build a profile even if you haven’t signed up with them. I’d like to give community members that kind of control over their privacy.

:white_check_mark: show content from Facebook

Something like this near every embed or in the user preferences might be too much for some, though. A more seamless alternative could be Embetty:
https://github.com/heiseonline/embetty

5 个赞

Have you found a solution to implement this in Discourse? I would also be interested in it.

No, I haven’t tried because of a severe lack of skills.

1 个赞

Maybe a first simple step would be to implement a general option in the user settings to enable/disable 3rd party content, activating/deactivating the onebox feature on a per user base?

We are also craving for an option like this, but are not really able to implement it.

2 个赞

Unfortunately that is not enough. As anonymous traffic falls also under GDPR.

This is what most websites do currently in the EU:

Before clicking the switch:

After clicking the switch:

2 个赞

在用户提出担忧后,我找到了这个话题。Discourse 会在未经用户同意的情况下从 Youtube 加载内容(视频的图片)。而且,当用户点击视频时,我们无法向用户显示任何信息。因此,我怀疑这是否是向 Youtube 传输信息的有效同意,因为 Discourse 会从 Youtube 加载更多脚本等。\n\n除了禁用 OneBoxing 之外,是否有办法使 Discourse 符合 GDPR?\n\n严格来说,嵌入来自第三方网址的图片也有问题。可以禁用此功能吗?

1 个赞

就GDPR而言,YouTube没有问题。只需告知用户第三方负责遵守GDPR——这正是他们必须做的,也是YouTube/Google实际所做的。这与您必须对分析等做的事情相同。TikTok则是一个更大的问号。

就图片而言,据我所知,您没有泄露个人数据。

抱歉,不行。事情没那么简单。

如果网站让浏览器从第三方请求资源,IP地址(出于不可避免的原因)会被传输给该第三方。而该网站的运营者要对这次数据传输负责。由于IP地址可用于识别个人,因此受到GDPR的保护。

这就是为什么网站要确保它们在自己的服务器上托管字体,而不是从Google Fonts引用。仅谷歌的第一个搜索结果:Google Fonts and GDPR: How to Stay Compliant? - CookieYes

是的,就这么简单。IP 地址不受保护,因为它对于识别个人毫无用处。它是技术数据的一部分,只要需要,就可以随时使用和存储。

我不确定您居住在哪一个司法管辖区,但在我的司法管辖区,法院已经裁定,未经用户同意使用 Google 字体不符合 GDPR(通用数据保护条例)的要求。

据我所知,这是一个合理的担忧。在 Meta 上之前也提出过这个问题:https://meta.discourse.org/t/embed-youtube-videos-with-enhanced-privacy-mode-youtube-nocookie-com/216469。过去我也曾通过私人支持帮助网站所有者解决过这个问题。

我在上面发布的链接中提供了一些关于备用 youtube-nocookie.com 域名的详细信息。Discourse 的 YouTube onebox 可以选择从该域名嵌入视频。Discourse 团队在该主题中的回复表明了为什么尚未实施此功能。

值得注意的是,即使使用 youtube-nocookie.com 域名,YouTube 仍然会在浏览器上设置跟踪 cookie,只是不设置与营销相关的 cookie。

在网上搜索实施了符合 GDPR 的嵌入式 YouTube 视频的网站示例,我找到的最好的例子是这个:https://www.cookietractor.com/youtube-and-vimeo-without-cookies。它来自一家提供 cookie 管理服务的公司,所以这可能带有偏见。有趣的是其中的 YouTube 视频演示。要试用,请点击页面上的“您的 cookie 设置”链接并重新加载页面。尝试三种可能的 cookie 选项以了解处理方式是值得的。

Discourse 可以实现类似的功能。尝试将 Discourse 与第三方 cookie 管理系统集成很麻烦。

请注意,我对这个问题没有强烈意见,也不居住在欧盟。我在这里回复是因为我知道这是网站所有者关心的问题,并且他们在使用外部服务时难以实现。