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

# Honeypot

> A trap channel that removes or quarantines hacked accounts and spam bots the moment they post in it. Free on every plan.

A honeypot is a channel no real member is meant to use. Hacked accounts and spam bots post into every channel they can see, often explicit images or scam links. When one posts in your honeypot, Vetox removes the account at once, or quarantines it with a role you choose, and deletes its recent messages, before the spam spreads or the account starts messaging your members.

> [!NOTE]
>
> Free on every plan. Everything is configured from the dashboard: Honeypot has no commands.

> [!NOTE]
>
> Honeypot also needs its switch on the [Setup](https://docs.vetox.io/en/server-management/setup.md) page. While it is off, the Honeypot page shows a note with an **Enable** button.

## How it works

**1. Someone posts in a trap channel**

Any message from a person counts, from the moment the channel became a trap. Messages from bots and Discord's own system messages (joins, boosts, pins, new threads) are ignored. If someone runs another bot's slash command in the trap, the person who ran it counts as the poster.

**2. Vetox messages them first**

The member gets a direct message explaining that their account posted in a trap channel and probably needs securing. The message is sent before the action, because Vetox cannot reach someone who no longer shares a server with it.

**3. Vetox acts**

**Softban** bans and immediately unbans the account: its messages from the last hour are deleted and the member can rejoin once their account is safe. **Ban** removes them permanently and deletes the same messages. **Quarantine** keeps them in the server: Vetox gives them the role you picked, such as one that hides every channel or a Mute role, and deletes the same messages.

**4. Vetox logs it**

A line goes to your log channel, and the counter on the trap's warning message goes up.

## Setting it up

**1. Choose or create the trap channel**

Pick an existing text channel or press **Create a channel for me**. Give it an ordinary name: spam tools skip channels called *honeypot* or *trap*.

**2. Choose a log channel**

Optional but recommended: without one you cannot see the trap working, and failures are posted in the trap channel itself. The log channel can't also be a trap: the two lists leave each other's channels out.

**3. Pick the action**

**Softban** is recommended: most accounts caught are real members whose account was taken over. Choose **Quarantine** to keep them in the server under a role until your staff review them, then pick that role (see [Setting up a quarantine role](#setting-up-a-quarantine-role)).

**4. Save**

Vetox checks its own permissions in every channel and posts the warning message before anything is saved. If something would stop the trap working, the save is refused and the page tells you exactly what is missing. A channel you removed from the traps stops being one straight away, even when the rest of the save is refused.

> [!WARNING]
>
> Never use an active channel such as **#general** as a trap. Every member who posts there is removed.

### Setting up a quarantine role

Vetox only adds the role: what it does comes from its permissions in your channels.

1. Create a role with no permissions, for example **Quarantined**.
2. To hide your server, turn **View Channels** off for that role in each category (its channels follow it) and each channel that does not sync with its category. For a mute role, turn off **Send Messages**, **Add Reactions** and **Speak** instead.
3. Pick it as the quarantine role on the Honeypot page.

> [!WARNING]
>
> A channel that allows View Channels or Send Messages to another role the member has still lets them in: Discord applies a role's **Allow** over another role's **Deny**. Check channels that grant access to roles such as **Member**.

The quarantine role can't be @everyone, a role Discord manages (a bot's role or the booster role), a role at or above Vetox's highest role, or one of your exempt roles. Vetox refuses a role with Administrator, Manage Server, Manage Roles, Manage Channels, Manage Webhooks, Manage Messages, Ban Members, Kick Members, Timeout Members or Mention @everyone: it would hand that power to whoever controls the account. Vetox checks this when you save and again each time it acts, so a role changed later is never given. **Rejoin invite** can't be used with Quarantine, since the member stays.

### What Vetox needs

| Where | Permissions |
| - | - |
| Server-wide | Ban Members for Softban and Ban, or Manage Roles and Manage Messages for Quarantine; plus Timeout Members for **Time out first** and Manage Messages for **Sweep their messages** |
| Each trap channel | View Channel, Send Messages, Add Reactions, plus Manage Messages for Quarantine and whatever the extra defences you turn on need |
| Log channel | View Channel, Send Messages, Embed Links, plus Attach Files for **Forward the message** |

For Softban and Ban, Vetox's role must also be above the roles of the members it should act on. For Quarantine, it must be above the quarantine role.

> [!NOTE]
>
> Honeypot's settings are not part of [Vetox Backup](https://docs.vetox.io/en/server-management/backup.md). Restoring a backup never turns a channel into a trap: set the trap up again after a restore.

## Who is never acted on

* The server owner, members with Administrator, Manage Server, Manage Roles or Ban Members, and anyone whose highest role is at or above Vetox's.
* Members holding one of your **exempt roles**. Add your moderators' roles here if their roles carry only Kick, Timeout or Manage Messages.

An exempt member who posts in the trap is not acted on. They get the direct message marked as an example, and the log says they are exempt.

## Extra defences

| Defence | What it does |
| - | - |
| **Forward the message** | Forwards the message that tripped the trap to your log channel. Needs a log channel. |
| **Rejoin invite** | Adds a **Rejoin the server** button to the direct message, using a permanent invite to the first trap channel. Recommended with Softban. Not available with Quarantine. |
| **Time out first** | Times the member out for one hour before the action. The timeout is still there if they rejoin. |
| **Channel warmer** | Once a day, posts and immediately deletes a message so the trap looks recently active. |
| **Daily new name** | Once a day, renames the trap to an ordinary channel name. |
| **Daily random name** | Once a day, renames the trap to random letters and digits. Wins over **Daily new name**. |
| **Recreate daily** | Once a day, replaces the trap with a fresh copy (same name, permissions and position) and deletes the old one. Advanced. |
| **Delete only recent messages** | Deletes the last 15 minutes of messages instead of the last hour. Recommended. |
| **No warning message** | Posts no warning in the trap channel. |
| **No DM** | Sends the member no direct message. |
| **Several trap channels** | Lets you use up to 10 trap channels, each with its own counter. Recommended. |
| **Sweep their messages** | Two minutes after the action, searches the server for the member's messages from the 10 minutes before and deletes what is left. Advanced: use it only if messages survive the ban. |

> [!NOTE]
>
> **No DM** and **Rejoin invite** cannot be on together, and neither can **Forward the message** and **Sweep their messages**, nor **Rejoin invite** and Quarantine. **Recreate daily** replaces the daily renames and the warmer.

## Messages

You can replace the warning, the direct message and the log line with your own text. Leave a text empty to use Vetox's default in your server's language.

| Text | Length | Variables |
| - | - | - |
| Warning | 25 to 1,500 characters | `[Action]` |
| Direct message | 25 to 1,000 characters | `[Action]` `[User]` `[ServerName]` `[ServerLink]` `[ChannelLink]` `[InviteLink]` |
| Log line | 25 to 500 characters | `[User]` `[UserId]` `[Username]` `[DisplayName]` `[Created]` `[Nickname]` `[Joined]` `[Roles]` `[Channel]` `[Count]` `[Action]` |

The warning and the direct message can end with up to four image links, one per line. An image link can't contain a variable: a line with `[` or `]` in it is part of the text. The log line must contain `[User]` or `[UserId]`.

## In Discord

* **Unban** on a log line lifts a ban the trap issued. It works for 24 hours and needs the Ban Members permission.
* **Remove role** on a quarantine's log line takes the quarantine role off the member. It needs Manage Roles and a highest role above the quarantine role.
* **Troubleshoot** appears when Vetox could not act. After a Softban or Ban it shows whether Vetox has Ban Members and lists the roles in order. After a Quarantine it checks the quarantine role: whether it still exists, whether Vetox has Manage Roles, whether the role is below Vetox's, and whether it grants a staff permission.
* The counter on the warning message shows how many accounts the trap caught. Press it to see the numbers for the last seven days.

## Tips

* Keep the trap near the top of your channel list, but not first: many spam tools post to the first few channels and skip the very first.
* Keep its permissions like your other channels, including sending images: much of this spam is images.
* Test it with a second account after setting it up, and again after you change roles or permissions.
* Write the warning in your server's main language so real members understand it.

## Troubleshooting

> [accordion] The save was refused
>
> The page lists what is missing, for example Ban Members, or a channel Vetox cannot post in. Fix it in Discord and save again.

> [accordion] The page says the trap is not armed
>
> The trap channel was deleted. Pick another channel or create one, and save.

> [accordion] The page lists problems with an armed trap
>
> The trap is still watching, but something found at the last check can stop Vetox acting, such as a permission removed after you saved. Fix it in Discord, then press **Check and arm**.

> [accordion] The warning message was deleted, or the Rejoin button stopped working
>
> Vetox posts the warning again the next time it catches an account. To put it back now, or to renew a rejoin invite someone deleted, press **Check again** on the Setup tab.

> [accordion] A quarantined member can still see or post in a channel
>
> That channel allows View Channels or Send Messages to another role they have, which Discord applies over the quarantine role's Deny. Turn the permission off for the quarantine role there, or remove the Allow from the other role.

> [accordion] A quarantined member left and came back without the role
>
> Discord drops a member's roles when they leave. If the account posts in the trap again, Vetox quarantines it again.

> [accordion] Someone posted and was not removed
>
> They may be exempt (owner, staff or an exempt role), or Vetox's role is below theirs. The log line says which, and **Troubleshoot** shows the role order.

> [accordion] A real member was removed
>
> With Softban they can rejoin. Tell members not to post in the trap, keep the warning message, and consider a channel name that does not invite chat.

## Related

> [card] [My account was hacked](https://docs.vetox.io/en/moderation/compromised-account.md)
>
> What to do if Honeypot removed or quarantined you.

> [card] [Anti-Raid](https://docs.vetox.io/en/moderation/anti-raid.md)
>
> Stops floods of new accounts at the door.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.