How to Filter Swear Words and Scam Links on Discord

How to Filter Swear Words and Scam Links on Discord

To filter swear words on Discord, you need something that checks text against a list of words and does something when one matches. Discord's built-in AutoMod covers new messages. Quark's automations cover everything Quark logs: edited and deleted messages, file names, nicknames, ban reasons and voice channel statuses, with ready-made lists of swear words, scam links and risky files.


The lists Quark gives you

Every list works on every plan, and the builder shows what each one holds and where it comes from.

ListWhat it catches
Swear wordsIn English, German, Spanish, French, Polish, Portuguese and Turkish
Scam and phishing linksKnown scam and phishing addresses
Link shortenersShort links that hide where they go
Discord invite linksInvites to other servers
Risky file typesFiles such as .exe and .scr

Or make your own list of up to 200 words and phrases: type one and press Enter, or paste several at once.

How matching works

  • Whole words only. ass is not found in "class".
  • Case doesn't matter, and neither do full-width letters or extra spaces, the usual tricks for slipping past a filter.
  • Links are matched as addresses. A web address on the list matches the addresses in the message.
  • File types match the end of a name. .zip matches notes.zip, and IMG_1234.jpg is not caught by .img.

Tutorial: flag swearing in deleted and edited messages

This rule works on the free plan. It adds a notice to the log and alerts your mods whenever a message with a swear word is edited or deleted.

  1. Open Automations in the dashboard and press New rule, then Start from scratch.
  2. Under When, choose Delete Single Message and Edit Message.
  3. Under And only if, add It's on a list of words. Choose the message, contains a word from, and Swear words (English), or another language.
  4. Under Then, choose Add a notice to the log, for example Contains swearing.
  5. Add a second action, Post an alert in a channel, and pick #mod-alerts.
  6. Press Try it to check it against sample logs, switch on Dry run for a day, then Save rule.

A Quark alert in #mod-alerts about a deleted message that contained a word from the English swear words list

A common trick is to post something harmless, wait for it to slip past, then edit a scam link ("free Nitro", a fake Steam gift) into it. Quark logs every edit, so a rule can catch it.

  1. Press New rule and choose the idea for a message with a known scam link.
  2. It watches Edit Message and Delete Single Message, and And only if checks the message against Scam and phishing links.
  3. The rule can flag the log and alert your mods. On an edited message it can also reply to warn everyone.
  4. It can also delete the edited message and time the poster out for an hour. All of this works on every plan.
  5. Save rule.

More on how the scam link lists work is on the scam link blocker page.

More things to check against a list

Lists aren't only for messages. A rule can check any text a log holds:

  • Nicknames and usernames, for offensive names.
  • File names, against Risky file types.
  • The reason on a ban or kick.
  • A voice channel's status, a place Discord's AutoMod doesn't look. See the voice channel status filter.

What each plan gets

FreePro LiteQuark Pro
Lists of words, including Quark'sYesYesYes
Alerts, notices, replies, reactionsYesYesYes
Rules1325
Delete the message, time out, kick, banYesYesYes

FAQ

Is the swear word filter free?

Yes. Lists of words, including all of Quark's own lists, work on every plan. The free plan's rule can alert, add a notice, reply, react, delete the message or time someone out.

Which languages do the swear word lists cover?

English, German, Spanish, French, Polish, Portuguese and Turkish.

Will a filter for "ass" catch the word "class"?

No. Words are matched whole, so ass is not found in "class". Case, full-width letters and extra spaces are ignored.

Should I use this instead of Discord's AutoMod?

Use both. AutoMod stops a message before it is posted. Quark's rules run on what Quark logs, so they can also check deleted messages, file names, nicknames, ban reasons and voice channel statuses, which AutoMod never reads.


Every condition and action is in the guide to automations.

Thanks for reading.
Quark logo

Protect Your Discord Community.

Join thousands of server owners using Quark to secure their communities. Set up logging in minutes.

Start Logging Now