# Onebox、favicon 和 Cloudflare 的“热链保护”

**URL:** <https://meta.discourse.org/t/onebox-favicons-and-cloudflares-hotlink-protection/120219>\
**Category:** Product Support\
**Created:** [2019 年6 月 13 日 08:54 UTC](https://meta.discourse.org/t/onebox-favicons-and-cloudflares-hotlink-protection/120219 "2019-06-13T08:54:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![chrisc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisc/32/119982_2.png) [@chrisc](https://meta.discourse.org/u/chrisc)\
发布日期： [2019 年6 月 13 日 09:50 UTC](https://meta.discourse.org/t/onebox-favicons-and-cloudflares-hotlink-protection/120219/3 "2019-06-13T09:50:17Z")

</div>

> [@pfaffman](#):
>
> 你会怎么做？

与其他图片的处理方式相同吗？

参考这个 onebox：

> **[Co-operatives UK Workers Co-op Weekend May 10th-12th 2019](https://community.coops.tech/t/co-operatives-uk-workers-co-op-weekend-may-10th-12th-2019/1227/16)**
>
> @leedscath has written an article about the weekend: This hits the nail on the head for me, I really enjoyed doing the pots with @coopsmark 😃: The vibe at the Worker Co-op Weekend is relaxed, practical and DIY, with a sense that going for a...

篝火图片的 URL 是：

```plaintext
![](upload://yL3c0erBE8QgCGLh5SKlzQJ1nZj.jpeg)

```

它是 Discourse 从该原始 URL 的网站上下载的：

```plaintext
https://www.thenews.coop/wp-content/uploads/D6eFNECXkAM9BmG-1280x600.jpg

```

我只是想问，将 favicon 像其他图片一样处理（即下载副本并在本地提供）是否合理？

> [@pfaffman](#):
>
> 如果有人费尽心机阻止你下载这些图片，我的回应要么是“自作自受”，要么是“我会尊重他们的意愿。”

亲自测试当前行为即可：在 Cloudflare 保护下的网站上启用“热链保护”，你会发现 Discourse 仍然会下载 onebox 的主要图片……

---

_[View the full topic](https://meta.discourse.org/t/onebox-favicons-and-cloudflares-hotlink-protection/120219)._
