# 下载限制

**URL:** https://meta.discourse.org/t/download-restriction/309392
**Category:** Support
**Created:** [2024年五月25日 15:36 UTC](https://meta.discourse.org/t/download-restriction/309392 "2024-05-25T15:36:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kumandan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumandan/32/324603_2.png) [@Kumandan](https://meta.discourse.org/u/Kumandan)
#### Post date: [2024年五月25日 15:36 UTC](https://meta.discourse.org/t/download-restriction/309392/1 "2024-05-25T15:36:22Z")

</div>

您好，我想只允许具有一定信任级别的用户下载文件。有什么方法可以做到这一点吗？  
或者可以设置一个先决条件，例如至少有 2 条评论。

提前感谢您的支持。

---

<div class="post-metadata">

### Author: ![anon82911141](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anon82911141](https://meta.discourse.org/u/anon82911141)
#### Post date: [2024年五月25日 23:09 UTC](https://meta.discourse.org/t/download-restriction/309392/2 "2024-05-25T23:09:10Z")

</div>

简单回答——_否_。

如果用户可以查看文件，他们就可以下载该文件， **除非** 他们是匿名用户。如果您希望阻止未登录的用户下载附件，请切换以下设置：

**`prevent anons from downloading files`** 防止匿名用户下载附件。

或者，您可能希望为具有特定信任级别的用户设置一个类别，并在那里共享附件。您可以通过以下方式进行操作：

- 限制为特定的信任级别（“安全” → “组” → “添加组”）

如果您想更改信任级别的前提条件，可以在“设置” → “信任级别” → “对设置进行适用更改”中进行操作。

不确定这是否是您想要的，但我希望有所帮助。

---

<div class="post-metadata">

### Author: ![Kumandan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumandan/32/324603_2.png) [@Kumandan](https://meta.discourse.org/u/Kumandan)
#### Post date: [2024年五月28日 09:00 UTC](https://meta.discourse.org/t/download-restriction/309392/3 "2024-05-28T09:00:23Z")

</div>

谢谢你的信息。

我已经这样做了，但是有太多人只是为了下载文件而注册。我想阻止这种情况发生。
