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

# Filtering

> Protect your server from spam, invites, blacklisted words, and malicious attachments

## Overview

The **Filtering** module protects your server from unwanted content such as:

* Blacklisted words
* Discord invite links
* Spam messages
* Mention spam
* Executable attachments
* Images in restricted channels

These protections help keep chats clean and prevent common raid or scam behaviors

***

## Adding a filtered word

Use this command to add a word to the blacklist

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter add (word)
  ```

  ```javascript Example theme={null}
  ,filter add scam
  ```
</CodeGroup>

Messages containing the word will be automatically deleted

***

## Removing a filtered word

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter remove (word)
  ```

  ```javascript Example theme={null}
  ,filter remove scam
  ```
</CodeGroup>

***

## Viewing filtered words

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter list
  ```

  ```javascript Example theme={null}
  ,filter list
  ```
</CodeGroup>

***

## Invite filtering

Enable or disable blocking of Discord invite links

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter invites (on|off)
  ```

  ```javascript Example theme={null}
  ,filter invites on
  ```
</CodeGroup>

***

## Spam filtering

Automatically detect and block rapid message spam.

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter spam (on|off)
  ```

  ```javascript Example theme={null}
  ,filter spam on
  ```
</CodeGroup>

***

## Mention filtering

Prevents users from mass-mentioning members or roles

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter mention (on|off)
  ```

  ```javascript Example theme={null}
  ,filter mention on
  ```
</CodeGroup>

***

## Blocking executable attachments

Prevent `.exe` files from being uploaded

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter exe (on|off)
  ```

  ```javascript Example theme={null}
  ,filter exe on
  ```
</CodeGroup>

***

## Image-only channels

You can lock a channel so only images are allowed

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter imagelock (channel)
  ```

  ```javascript Example theme={null}
  ,filter imagelock #media
  ```
</CodeGroup>

***

## Whitelist

Toggle filter exemption for a channel

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter whitelist (channel)
  ```

  ```javascript Example theme={null}
  ,filter whitelist #media
  ```
</CodeGroup>

List exempt channels

<CodeGroup>
  ```javascript Syntax theme={null}
  ,filter whitelisted 
  ```

  ```javascript Example theme={null}
  ,filter whitelisted 
  ```
</CodeGroup>
