> For the complete documentation index, see [llms.txt](https://discortics.com/llms.txt). A consolidated single-file corpus is available at [llms-full.txt](https://discortics.com/llms-full.txt). Markdown versions of documentation and comparison pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discortics.com/guides/automod-links.md).

# Link Protection

Turn on only the filters you need, then allowlist trusted domains. See [Automoderation](/guides/autopilot) for permissions.

## Set up Link Protection

### Dashboard Setup

1. Open **Dashboard → Moderator → AntiLink**.
2. Enable the protection.
3. Turn on the link filters you need.
4. Add blocked or allowed domains.
5. Add trusted exceptions only if needed.
6. Save and test with harmless links.

### Discord Command Setup

1. Run `/autopilot antilink`.
2. Select **Enable**.
3. In **Config**, use **Enable** or **Disable** beside each filter.
4. Manage **Blocked Domains** and **Allowed Domains**.
5. Review **Punishments**, and use **Whitelist → Manage** for exceptions.

## Filters

| Filter              | What it blocks                                              |
| ------------------- | ----------------------------------------------------------- |
| **Discord Invites** | `discord.gg`, `discord.com/invite`, `discordapp.com/invite` |
| **Phishing Links**  | Known phishing domains                                      |
| **Short Links**     | Known URL shorteners                                        |
| **NSFW Links**      | Known adult domains                                         |

> [!NOTE]
> No list catches everything. An unknown domain isn't guaranteed to be safe.

## Your own domains

- **Blacklist:** select **Add** and send comma-separated domains, such as `example.com`. Paths and `https://` are removed for you.
- **Allowlist:** trusted domains that bypass the filters and your blacklist. The allowlist wins over the blacklist.

Each list holds up to 1,000 entries on every plan.

## Exceptions

Ignored users, roles, and channels bypass Link Protection.

## Punishments

Discord invite filters and custom keyword rules are synced to Discord AutoMod and can block messages before they're posted. Review any rule conflict in the panel and manage the existing rule in **Server Settings → AutoMod**. Discortics' phishing, short-link, and NSFW checks use its own punishment steps.

Compare plans and capabilities on the [Discord AutoMod & Anti-Raid overview](/features/autopilot).
