ChatSentry Wiki
  • ChatSentry
  • Features
  • Compatibility details
  • Module list & info
  • FAQ
  • Perms & Cmds
    • Bypass & misc. permissions
    • Commands (and their permissions)
      • In-game view
      • In depth command usages
  • guides
  • Plugin installation & configuring guide
  • Network bridge setup guide
  • In depth Word & Phrase Filter block list setup
  • In depth Chat Executor guide & entry examples
  • Config guides
    • Main/core config guide
    • Module config guides
      • Admin Notifier
      • Anti Chat Flood
      • Anti Command Prefix
      • Anti Join Flood
      • Anti Parrot
      • Anti Statue Spambot
      • Auto Grammar
      • Auto Punisher
      • Cap Limiter
      • Chat Cooldown
      • Chat Executor
      • Command Spy
      • Link & Ad Blocker
      • Spam Blocker
      • Unicode Remover
      • Word & Phrase Filter
    • Lang file guide
  • contact
  • Get support, talk with other cs users, make suggestions, etc.
  • Plugin Files
    • Default plugin configs & other files
      • /ChatSentry
        • config.yml
        • lang.yml
        • storage.yml
        • changelog.txt
      • /ChatSentry/Modules
        • admin-notifier.yml
        • anti-chat-flood.yml
        • anti-command-prefix.yml
        • anti-join-flood.yml
        • anti-parrot.yml
        • anti-statue-spambot.yml
        • auto-grammar.yml
        • auto-punisher.yml
        • cap-limiter.yml
        • chat-cooldown.yml
        • chat-executor.yml
        • command-spy.yml
        • link-and-ad-blocker.yml
        • spam-blocker.yml
        • unicode-remover.yml
        • word-and-phrase-filter.yml
  • Misc info and resources
    • Preset word lists for the word and phrase filter
    • ChatSentry's SpigotMC Page
  • API
    • About
    • Accessing the API
    • API Documentation
      • Events
      • Methods
  • Development
    • v5 Changelog
    • Legacy Changelogs
      • v4 Changelog
      • v3 Changelog
      • v2 Changelog
      • v1 Changelog
  • legal
    • Terms of Use Agreement
Powered by GitBook
On this page

Was this helpful?

  1. Plugin Files
  2. Default plugin configs & other files
  3. /ChatSentry/Modules

link-and-ad-blocker.yml

# --------------------------------------------------------------------------------------
# Intelligent Link & Ad Blocker:
# Prevents web links & server advertising (regular server ips & numeric server ips) with optional extra sensitivity bypass detection in chat, commands, signs, anvils, and books (additional check contexts can be disabled). Includes the ability to whitelist domains or all subdomains of a domain.
# Bypass permission: "chatsentry.linkandadblocker.bypass"
# --------------------------------------------------------------------------------------

# If "process-commands" is true in config.yml, this module will filter through all commands (of players without bypass permission or op)
# If "process-signs" is true in config.yml, this module will filter through text written on signs (of players without bypass permission or op)
# If "process-anvils" is true in config.yml, this module will filter through items renamed in anvils (of players without bypass permission or op)
# If "process-books" is true in config.yml, this module will filter through writing in books (of players without bypass permission or op)

# The below list is the list of domain names (not urls) that will be ignored by the filter.
# Variants with and without http://, https://, and www. will automatically be handled by the plugin; no need to add them below.
# Ex. adding "google.com" will allow: https://google.com, http://google.com, www.google.com, https://www.google.com, and http://www.google.com
# If you wish to whitelist all subdomains of a domain, you can do so with "*."; ex. "*.google.com" will permit all subdomains of Google ("mail.google.com", "https://maps.google.com", etc.)
# Character case in the below list does not matter. Case variants are automatically checked by the plugin.
# Set to "domain-whitelist: []" to have an empty list.
domain-whitelist:
  - "*.AllSubdomainsOfThisDomainAreAllowed.com"
  - "minecraft.net"
  - "spigotmc.org"
  - "*.youtube.com"
  - "youtu.be"
  - "spotify.com"
  - "optifine.net"
  - "java.com"
  - "minecraft.fandom.com"
  - "blockpalettes.com"

# If you have commands that you would like the filter to ignore checking, add them to the list below.
# Useful if you want to disable the filters checks in commands that use permissions or use comma lists (extra sensitivity will detect them otherside), or for commands like /msg.
# Make sure to only include base commands; don't add any command arguments. (spaces)
# Set to "command-whitelist: []" to have an empty list.
command-whitelist:
  - "/lp"
  - "/pex"
  - "/mangaddp"
  - "/manuaddp"
  - "/mangdelp"
  - "/manudelp"
  - "/rg"
  - "/region"
  - "//set"
  - "//replace"
  - "//overlay"
  - "//gmask"
  - "//fill"

# If enabled, the plugin will only block roughly 1,500 of the most widely used (TLD) domains (like .com, .net, .org, etc). Keeping this can substantially decrease false positive detections and will still effectively block advertising - however the downside is that uncommon, more suspicious links are unlikely to be detected.
# Only turn this off if you want maximum protection from links of any kind
# The current TLD list utilized by the plugin is a modified version of 2022030400 (Mar 4 22) via https://data.iana.org
only-filter-top-level-domains: true

# If enabled, common exploits to bypass link / ip filters will be blocked. For example, "google,,com", "google(dot)com", "youtube {D_O_T}com", etc.
# This option is NOT RECOMMENDED unless you deal with lots of advertisements. Since having this on makes the filter extra sensitive, it will be more likely to block things when it shouldn't. Due to how this option blindly processes a lot of messages, it does not respect the domain whitelist or only-filter-top-level-domains and will apply itself to any attempted malformed links it detects.
extra-sensitive: false

# If enabled, should social handles with periods (ex. "@some.social.handle") will be ignored. Please note turning this on allows people to bypass the filter by simply adding an "@" symbol to the start of the link/ip in question.
ignore-handles: false
Previouscommand-spy.ymlNextspam-blocker.yml

Last updated 3 years ago

Was this helpful?