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

# Honeypot

> Stop compromised accounts from spreading malicious content in your server.

## How it works

You set up a channel nobody has any reason to post in, and confine posts a warning telling members not to. Anyone who posts there anyway gets punished automatically.

The point is that compromised accounts and self-bots blast every channel they can see. A real member reads the warning and moves on; a hijacked account posts its scam link and gets caught immediately.

<Info>
  Every command here requires **Manage Server**.
</Info>

<Info>
  Members with **Manage Server** or **Administrator** are exempt automatically — staff won't trip the honeypot.
</Info>

## Setting it up

<CodeGroup>
  ```javascript Syntax theme={null}
  ,honeypot set (channel)
  ```

  ```javascript Example theme={null}
  ,honeypot set #do-not-type
  ```
</CodeGroup>

Confine posts the warning message as soon as you set it. Channel names work as well as mentions.

<Tip>
  Put the honeypot somewhere visible near the top of your channel list. It only works if the accounts spamming your server can see it.
</Tip>

Confine needs **View Channel**, **Send Messages**, and **Manage Messages** there.

### Re-posting the warning

If the message gets deleted or buried:

```javascript theme={null}
,honeypot repost
```

## Choosing the punishment

<CodeGroup>
  ```javascript Syntax theme={null}
  ,honeypot punishment (ban, kick, or jail)
  ```

  ```javascript Example theme={null}
  ,honeypot punishment ban
  ```
</CodeGroup>

| Punishment | Result                                        |
| ---------- | --------------------------------------------- |
| `ban`      | Removes the account permanently               |
| `kick`     | Removes them, but they can rejoin             |
| `jail`     | Confines them to your jail channel for review |

<Warning>
  `jail` needs your moderation system set up first — run `,setup` before choosing it.
</Warning>

Defaults to `kick`.

## Recording a reason

<CodeGroup>
  ```javascript Syntax theme={null}
  ,honeypot reason (reason)
  ```

  ```javascript Example theme={null}
  ,honeypot reason Compromised account
  ```
</CodeGroup>

This shows up in your audit log and moderation records. Up to 400 characters.

## Checking your setup

```javascript theme={null}
,honeypot configuration
```

Shows the channel, punishment, reason, and whether staff are exempt.

## Turning it off

```javascript theme={null}
,honeypot disable
```
