> For the complete documentation index, see [llms.txt](https://docs.mythmc.ovh/social/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mythmc.ovh/social/administration/setting-up-chat-filters.md).

# Setting up chat filters

Chat filters are a powerful tool to censor words, IPs or URLs:

<figure><img src="https://cdn.modrinth.com/data/SHhNKiri/images/5312134d644cb74d8d684d1df1f7e230fd062e0e.gif" alt=""><figcaption></figcaption></figure>

Despite its name, chat filters do work in anvils, books and signs too.

## Filtering by literals

```yaml
    filter:
        ...
        literalFilter:
        - i hope you step on a lego
```

This will censor the phrase "i hope you step on a lego". Literal filters are case insensitive.

## Filtering by regex

Users can also filter with their own RegEx rules. Here's an example:

```yaml
    filter:
        ...
        customRegexFilter:
        - ^dog
```

This will censor every word starting with "dog".
