For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

Configuration file: modules/antiadvertising.yml

General

modules:
  # Detects and blocks/censors IP addresses, domain names and URLs in chat
  #
  # Anti advertising module loaded from modules/antiadvertising.yml
  anti-advertising: true
  • modules.anti-advertising: Enable/disable the module


Module

Action

# What to do when an advertising word is detected:
# - CENSOR: Replace only the matched characters with censor-char
# - BLOCK: Cancel the message entirely
action: BLOCK
  • BLOCK: Cancels the message.

  • CENSOR: Replace the uppercase letters with the 'censor-char' character.

Censor-char

  • The censor character for the 'CENSOR' action.

Filters

  • filters.ipv4: Enable/disable the IPv4 filters, example: 1.1.1.1, 192.168.0.1, 172.18.0.1, etc.

  • filters.ipv6: Enable/disable the IPv6 filters, example: ::1, fd12:3456:789a::1, 2001:db8:85a3::8a2e:370:7334

  • filters.domains: Enable/disable the domains filters, example: google.com, spigotmc.org, papermc.io

  • filters.urls: Enable/disable the urls filters, example: https://google.com, https://spigotmc.org, https://papermc.io

Whitelist

  • Here you can exclude domains from the filters.

Custom regex

  • By adding this to the settings, you can customize the regex filters that TChat uses for each filter.

Last updated