# Discourse 聊天很容易被刷屏 - 实施更严格的防刷屏机制

**URL:** <https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019>\
**Category:** Feature\
**Tags:** chat\
**Created:** [2023年一月7日 19:52 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019 "2023-01-07T19:52:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)\
**Post date:** [2023年一月7日 19:52 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/1 "2023-01-07T19:52:41Z")

</div>

您好，

我最近在使用聊天功能，发现默认聊天设置很容易就能刷屏。

这导致我的收件箱里塞满了消息，处理起来很烦人：

![image](https://global.discourse-cdn.com/meta/original/4X/f/8/1/f8146d255dc4a71f6d0694d82b94c0839accf85a.png)

我也相信，如果你真的想让某人难堪，你可以做到，尤其是如果你有两个账号同时刷屏的话。我认为默认情况下应该有一些防刷屏机制，特别是考虑到大多数聊天系统都有某种形式的防刷屏机制来防止垃圾信息。

感谢任何回复。

---

<div class="post-metadata">

**Author:** ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)\
**Post date:** [2023年一月8日 00:02 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/2 "2023-01-08T00:02:43Z")

</div>

另一种解决方案是使聊天只能在一定的信任级别（TL1 或 TL2 都可以，但需要用户更多地参与才能访问聊天）下访问。

---

<div class="post-metadata">

**Author:** ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)\
**Post date:** [2023年一月8日 00:17 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/3 "2023-01-08T00:17:07Z")

</div>

感谢您的提议。我们是否可以实施一个速率限制或冷却功能，这可能会有效地减少垃圾邮件？

---

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2023年一月8日 01:57 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/4 "2023-01-08T01:57:26Z")

</div>

在 `/admin/site_settings/category/chat` 下有几个现有的站点设置用于速率限制

 ![Screenshot 2023-01-07 at 8.48.16 PM](https://global.discourse-cdn.com/meta/original/4X/c/a/b/cab589b842488185238734c723215c99e0384d9a.png)

被标记的用户也将被静默一段时间：

 ![Screenshot 2023-01-07 at 8.49.21 PM](https://global.discourse-cdn.com/meta/original/4X/c/d/c/cdc6cc21fd18e36505d32cd62284731736d0a23d.png)

您还可以限制哪些组可以访问聊天（或直接消息）：

 ![Screenshot 2023-01-07 at 8.51.28 PM](https://global.discourse-cdn.com/meta/original/4X/2/8/8/2881ebf90d8063fab31ff17642366a75bf1ffe73.png)

最后，还有这个设置，可以提高到 `1.0` 来防止您分享的特定问题：

 ![Screenshot 2023-01-07 at 8.52.21 PM](https://global.discourse-cdn.com/meta/original/4X/d/8/2/d827fc74525ae34c4e78e5c663de42f1b496d2c4.png)

（快速测试表明，设置为 `1.0` 时有效，但我认为可能存在一个问题，即如果设置为小于 `1.0` 的任何值，它将不起作用）

---

<div class="post-metadata">

**Author:** ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**Post date:** [2023年一月8日 11:00 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/5 "2023-01-08T11:00:08Z")

</div>

> [@mcwumbly](#):
>
> 被标记的用户也将被禁言一段时间：

为了清楚起见，我认为值得明确说明，用户不仅在聊天中被禁言，而是在整个论坛中被禁言（这对我来说有些违反直觉，[我之前提出过这个问题](https://meta.discourse.org/t/could-the-auto-silence-feature-in-chat-be-improved/249857)）。

---

<div class="post-metadata">

**Author:** ![Noah](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@Noah](https://meta.discourse.org/u/Noah)\
**Post date:** [2023年一月8日 11:26 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/6 "2023-01-08T11:26:12Z")

</div>

我想知道在禁言垃圾信息发送者后，是否有办法减少收件人收到的通知数量。

![image](https://global.discourse-cdn.com/meta/original/4X/2/2/c/22c0d7b6e10a2d43c4f5cc7e5dc095f803b68e9a.png)

在默认设置下，您仍然可以发送很多垃圾信息，直到被禁言。这是可以在默认设置中调整的吗？还是有其他方法可以解决这个问题？

---

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2023年一月8日 19:19 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/7 "2023-01-08T19:19:13Z")

</div>

我猜这里最好的工具将是：

1. 不允许信任等级为 0 的用户聊天（要求信任等级为 1）
2. 降低“其他信任等级”的速率限制
3. 暂停任何违反政策/规范的用户

如果您在实际使用中遇到任何现有网站设置无法解决的问题，请务必在此处报告，并附上事件详情，以便我们共同进一步探讨。

---

<div class="post-metadata">

**Author:** ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)\
**Post date:** [2023年一月9日 03:12 UTC](https://meta.discourse.org/t/its-really-easy-to-spam-the-discourse-chat-implement-tighter-spam-resistance/251019/8 "2023-01-09T03:12:48Z")

</div>

这些选项都有道理，但有没有一种选项可以像目前在主题中那样，为聊天用户放慢发帖速度？
