> ## Documentation Index
> Fetch the complete documentation index at: https://hashbot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Anti-Everyone Protection

> Automatically block unauthorized @everyone and @here mentions.

Anti-Everyone Protection automatically detects and blocks unauthorized `@everyone` and `@here` mentions. When triggered, the message is deleted and the user is timed out for moderator review.

<Check>
  Free for all servers. Uses Discord's built-in mention detection — no false positives from messages that simply contain the text "@everyone".
</Check>

### How It Works

1. A member sends a message containing `@everyone` or `@here` that actually triggers a mass notification
2. Hashbot checks if the member is on the allowlist or has a manager role
3. If they are **not** exempt:
   * The message is **deleted**
   * The user is **timed out** for moderator review
   * The action is **logged** to your log channel

<Info>
  Hashbot uses Discord's `mention_everyone` flag on the message object — not string matching. This means messages like "don't use @everyone" will NOT trigger the protection, because they don't actually ping anyone.
</Info>

### Who Is Exempt

These members can use `@everyone` and `@here` without being blocked:

* **Server owner** and users with **Administrator** permission
* **Hashbot Managers** (users with configured manager roles)
* Members on the **Allowlist** (users or roles)
* **Bots**

### Enabling Anti-Everyone Protection

#### From the Dashboard

<Steps>
  <Step title="Open the Dashboard">
    Go to [dashboard.hashbot.com](https://dashboard.hashbot.com) and select your server.
  </Step>

  <Step title="Navigate to Settings">
    Click **Settings** in the sidebar under Hashbot.
  </Step>

  <Step title="Enable the toggle">
    Toggle on **Anti-Everyone Protection**.
  </Step>
</Steps>

#### From Discord

```
/settings anti-everyone set-state state:enable
```

To disable:

```
/settings anti-everyone set-state state:disable
```

### Commands

| Command                                           | Description                      |
| ------------------------------------------------- | -------------------------------- |
| `/settings anti-everyone set-state state:enable`  | Enable anti-everyone protection  |
| `/settings anti-everyone set-state state:disable` | Disable anti-everyone protection |

### Frequently Asked Questions

<AccordionGroup>
  <Accordion title="Does this work if my server already has @everyone permissions disabled?">
    If you've already disabled the `Mention @everyone, @here, and All Roles` permission for regular members, those members can't trigger mass mentions anyway — so this feature would have nothing to catch. It's most useful as a safety net in case channel permissions are misconfigured, or for servers that intentionally allow the permission for certain roles.
  </Accordion>

  <Accordion title="How long is the timeout?">
    The user is timed out using the same duration configured for malicious link detection (default: 7 days). You can adjust this with `/settings malicious-link set-timeout`. This gives moderators time to review the incident and decide on further action.
  </Accordion>

  <Accordion title="What if a legitimate moderator gets timed out?">
    Make sure all moderators are either added to the Allowlist or have a Hashbot Manager role configured. Members with manager roles are exempt from anti-everyone protection.
  </Accordion>
</AccordionGroup>

### Need Help?

If you need support with Anti-Everyone Protection:
[**Join our Discord**](https://discord.gg/hashbot) and open a ticket. Our team is happy to assist you.
