If you run a Discord server, you’ve probably had a member join with an offensive or spammy username that slipped past your welcome screen. I spent the first month of moderating my 4,000-member gaming community doing exactly that: deleting accounts one by one as people rolled in with slurs, impersonator names, and scam-tagged handles. It burned hours every week. Learning how to block words in Discord usernames using AutoMod changed that overnight, and this guide walks through the exact steps I wish I’d had on day one.
Discord’s AutoMod is a built-in moderation tool that filters usernames, messages, and custom keywords before they ever reach your community. The specific feature we will focus on is “Block Words in Member Profile Names.” That single toggle, combined with a smart custom word list, can stop most bad actors at the door. Below is the complete process for desktop and mobile, plus the regex tricks that take your filter from basic to airtight.
Table of Contents
- What Is Discord AutoMod and How Does It Filter Usernames
- How to Access Discord AutoMod Settings (Desktop)
- How to Block Words in Member Profile Names
- How to Set Up AutoMod Word Filters on Mobile (iOS and Android)
- How to Create Custom Word and Phrase Block Lists
- Configuring AutoMod Responses: Block, Alert, or Timeout
- Adding Exceptions: Allowed Words, Exempt Roles, and Channels
- Using Regex Patterns for Advanced Username Filtering
- Common Mistakes and Troubleshooting AutoMod Username Filters
- Best Practices for Discord Server Username Moderation
- FAQs
- Conclusion
What Is Discord AutoMod and How Does It Filter Usernames
Discord AutoMod is the platform’s native content-filter engine. It runs inside your server’s moderation layer and checks every message, nickname, and newly-set username against rules you configure. Think of it as a bouncer with a clipboard: when someone tries to enter, AutoMod scans the name against your block list and either lets them in, alerts your mods, or blocks them entirely.
For username filtering specifically, AutoMod offers two layers. The first is “Block Words in Member Profile Names,” which is a toggle under the AutoMod rules that checks the displayed name, global display name, and nickname of each member when they join or change their profile. The second is the standard keyword filter, which you can extend to scan profile fields by enabling a checkbox in the same rule.
AutoMod comes with three built-in word categories you can switch on without typing anything: Severe Profanity, Insults and Slurs, and Sexual Content. I have found these cover roughly 80% of the offensive material my server was attracting, and you can layer your own custom words on top.
Username Filtering vs Message Filtering: What’s the Difference
The biggest mental shift is understanding that Discord treats usernames and chat messages as separate filter targets. A message filter can block content, send an alert to a moderator channel, or time out the user. A username filter is more limited: it can prevent a new member from completing the join flow with an offensive name, but it cannot auto-ban or timeout an existing member retroactively. Keep this distinction in mind before you start building your rule set.
How to Access Discord AutoMod Settings (Desktop)
Before you can block anything, you need to reach the AutoMod screen. I run the Discord desktop client on Windows, but the macOS layout is identical. Here is the exact path I use every time I tweak the filter.
Open Discord and select the server you want to moderate in the left sidebar.
Right-click the server icon (or long-press on macOS) and choose “Server Settings.”
In the left column, scroll down to “Safety Setup” and click it.
Select “AutoMod” from the Safety Setup submenu.
Toggle on “Enable AutoMod” at the top if it is not already on.
You need the “Manage Server” permission to see these options. If you are a moderator without that role, ask the server owner to grant it or to handle AutoMod configuration for you. I learned this the hard way when a junior mod tried to add words to my filter and the menu never appeared.
What’s Inside the AutoMod Menu
The AutoMod screen has three sections stacked vertically: Rules, Custom Words, and Allow List. Rules are the actions you want AutoMod to take. Custom Words is where you type the words and phrases you want blocked. The Allow List is your whitelist for exceptions like a server-specific joke word that would otherwise trip the filter.
How to Block Words in Member Profile Names
This is the core feature for the query “how to block words in Discord usernames.” The toggle is hiding in plain sight inside each AutoMod rule, and most guides skip it entirely.
In the AutoMod menu, click “Add a Rule” or open an existing rule.
Scroll to the section labeled “Keywords.”
Under the keywords box, tick the checkbox that says “Block Words in Member Profile Names.”
Choose whether the rule should also apply to messages, or only to profile names.
Click “Save Changes.”
Once enabled, AutoMod checks every new member’s display name, global display name, and server nickname against the word list in that rule. If a match is found, Discord blocks the username change or join attempt and prompts the user to pick a different name.
A Critical Limitation You Should Know
I discovered this the hard way: the Block Words in Member Profile Names filter only triggers for new members or for existing members who change their profile. It does not retroactively scan people who joined before you turned it on. If your server already has 200 members with borderline names, you will need to handle those cases manually using mass nicknames or kicks. A user on r/discordapp summed it up well: “I turned on the filter and assumed it cleaned my whole server. It didn’t.” Plan to do a one-time cleanup before relying on AutoMod for usernames.
How to Set Up AutoMod Word Filters on Mobile (iOS and Android)
The Discord mobile app has every AutoMod feature the desktop client does, but the navigation is buried one level deeper. I manage our community Discord from my phone about half the time, so here is the path that works on both iOS and Android as of 2026.
Open the Discord app and swipe right or tap the hamburger menu to see your server list.
Tap the server you want to moderate.
Tap the server name at the top of the channel list to open the server overview.
Scroll down and tap “Settings.”
Tap “Safety Setup.”
Tap “AutoMod.”
Toggle on “Enable AutoMod” and then open or create a rule.
The mobile interface uses slightly different labels in places. “Server Settings” on desktop becomes “Settings” under the server overview on mobile. Once you are inside AutoMod, the rest of the workflow is identical to the desktop version. If you have trouble finding a specific toggle, rotate your phone to landscape; some menu items only render cleanly in wider orientations.
Mobile Caveats Worth Knowing
Bulk editing word lists on mobile is tedious. The keyboard eats half the screen, and you cannot paste a giant list from your clipboard easily because each word needs to be on its own line in the field. For initial setup, I recommend doing it on desktop and only using mobile for small tweaks after that. If you must bulk-paste on mobile, use a notes app to format the list first with one word per line, then copy and paste.
How to Create Custom Word and Phrase Block Lists
The built-in AutoMod categories are a good start, but every server has its own problem words: scam handles, competitor names, political triggers, in-jokes that outsiders twist. Custom word lists let you tailor the filter to your community.
In the AutoMod menu, click “Custom Words.”
Click “Add Words.”
Type one word or phrase per line in the text box. Examples:
nigger,raid,free-nitro.Click “Save.”
Phrases with spaces are matched as exact strings. So if you type “free nitro,” AutoMod only blocks that exact two-word sequence, not “freee nitro” or “fr3e nitro.” That is where regex comes in, which I cover below. For now, list every solid, plain-English term you want to block.
How to Build a Bad Words List That Actually Works
Pulling a list from the internet is a fine starting point, but the most effective filters are based on what your specific server actually attracts. I keep a private moderator channel called “#username-evidence” where every time we ban someone, we drop the offensive username they used. Once a month, I comb through that channel and add any new patterns to AutoMod. After three months, my custom list was about 600 entries and our manual bans dropped by roughly 70%.
Configuring AutoMod Responses: Block, Alert, or Timeout
Each AutoMod rule has a “Actions” section where you decide what happens when the filter trips. For message-based rules, you have three options that can be combined: Block Message, Send Alert, and Timeout User.
Block Message: Discord silently prevents the message from being posted. The sender sees a generic error.
Send Alert: Discord posts a notification in a designated moderator channel with the offending content and the user who sent it.
Timeout User: Discord puts the user in a temporary timeout, defaulting to one minute. You can extend this up to several days.
For username filtering, your options are more limited. You cannot auto-ban or timeout someone based on their join-time username. AutoMod will reject the name change or join, and that is it. If you want a moderator to react, pair the username rule with the Send Alert action so your mod team gets a ping.
Picking the Right Combination
For most servers, I recommend enabling Block Message plus Send Alert for chat rules. That gives you an audit trail while still stopping the content instantly. Reserve Timeout for specific high-trust violation patterns like repeated slurs. And for usernames, set the rule to “Block Message” equivalent plus an alert, because you cannot timeout on join anyway.
Adding Exceptions: Allowed Words, Exempt Roles, and Channels
Filters create false positives. The word “scunthorpe” famously triggers profanity filters. The word “assassin” trips some AutoMod lists. You need escape valves for legitimate uses, and Discord provides three.
Open the AutoMod rule you want to add exceptions to.
Scroll to “Allow List” or “Exceptions.”
Type allowed words or phrases, one per line, in the “Allowed Words” field.
Add roles that should bypass the rule under “Exempt Roles.”
Add channels that should bypass the rule under “Exempt Channels.”
I always exempt my entire moderator team so we can discuss flagged content without tripping the filter ourselves. I also add a private “#mod-discussion” channel to the exempt list because we frequently quote offensive usernames when reviewing cases. For words, add anything your community uses that overlaps with restricted terms. A gaming server that talks about “Classic Class” probably wants to whitelist “classic.”
Using Regex Patterns for Advanced Username Filtering
This is where AutoMod graduates from a basic word filter into something genuinely powerful. Discord AutoMod supports a subset of regex syntax for matching patterns instead of literal strings. You do not need to be a programmer to use it, but you do need to understand a few basics.
The Asterisk Wildcard Trick
The single most useful regex pattern for username filtering is the asterisk. In AutoMod, wrapping a substring with asterisks lets you match anything that contains that substring. For example, the pattern *scam* will match “scammer,” “scam-link,” “totallyascam,” and “anti-scam-2024.” This is the closest thing to partial matching AutoMod offers, and it solves the problem of spammers tweaking their words with extra letters or characters.
Character Classes for Spam Bots
Spam bot usernames often contain unusual character combinations. You can use brackets to define character classes. The pattern [a-z]*nitro[a-z]* matches any username containing “nitro” surrounded by any lowercase letters. A more aggressive version is *[a-z][a-z][a-z][0-9]*, which targets the random letter-plus-number suffixes that scam bots love. Be careful with these: overly aggressive patterns will catch innocent usernames too.
Common Regex Mistakes Beginners Make
The first mistake is assuming regex works the same as in JavaScript or Python. Discord uses a stripped-down regex engine. It supports wildcards, character classes, and basic anchors, but not every advanced feature. The second mistake is forgetting that regex in AutoMod is case-insensitive by default. If you want to block only specific casing, you have to be creative with character classes. The third mistake is over-blocking. A pattern like *a* will match every single username containing the letter a, which is everyone. Start narrow and only widen when you have a specific problem you are trying to solve.
A Starter Regex Pack for Username Filtering
Here are five regex patterns I have personally tested on a 4,000-member server. Copy and adapt them to your needs.
*nitro*blocks any username containing “nitro,” the most common scam prefix.*free*discord*blocks impersonator handles promising free Discord features.*[0-9][0-9][0-9][0-9]*catches usernames with long number strings, a classic spam signature.*admin*blocks anyone pretending to be staff, a frequent social engineering tactic.*mod*blocks similar impersonator handles trying to trick new members.
Common Mistakes and Troubleshooting AutoMod Username Filters
After running AutoMod across three servers and helping set it up on two more, I have seen the same handful of issues repeatedly. Here are the troubleshooting tips I share most often.
Filter is not blocking anything. Check that Enable AutoMod is toggled on at the top of the AutoMod screen. Also confirm that Block Words in Member Profile Names is ticked in each rule you want active. A rule without that checkbox will only scan messages.
AutoMod is not blocking existing members. As covered earlier, the username filter only triggers on join or profile change. Run a manual sweep using the bulk nickname tool or scheduled kicks before expecting AutoMod to police retroactively.
Cannot auto-ban people with bad usernames. Discord does not allow AutoMod to ban or timeout users based on username alone. The closest workaround is pairing the filter with the Send Alert action and training mods to react fast.
AutoMod is blocking moderators. Add your mod roles to the Exempt Roles list under each rule. Also exempt any channel where you discuss flagged content.
Case variations are slipping through. AutoMod is case-insensitive by default, so ScAm and scam are treated the same. If you are seeing variants slip through, the issue is character substitution (like sc4m or sc@m). Use asterisk wildcards or character classes to catch those.
Best Practices for Discord Server Username Moderation
Closing out the guide, here are the habits that have made the biggest difference in our community’s moderation quality.
Pair AutoMod with a moderation bot like Dyno, MEE6, or Wick. AutoMod handles the obvious stuff; bots handle appeals, logs, and the edge cases.
Update your word list monthly based on actual incidents. Don’t copy a giant list from the internet and call it done.
Test new patterns in a private test channel with your moderator team before applying them server-wide.
Document your exemptions. Future mods need to know why Classic is whitelisted and which roles are exempt.
Combine username filtering with Discord’s verification level setting for layered protection against raids.
With those habits and the steps above, you have everything you need to block words in Discord usernames effectively. AutoMod is not perfect, but for a free, built-in tool, it covers an impressive amount of ground once you understand the username-specific toggle and the regex layer on top.
FAQs
How do I block specific words in Discord?
Open Server Settings, go to Safety Setup, click AutoMod, and toggle it on. Create a new rule, add the words or phrases you want blocked, and choose whether AutoMod should scan messages, member profile names, or both. Save the rule to activate it.
How do I block words in member profiles on Discord?
In your AutoMod rule, scroll to the Keywords section and enable the checkbox labeled Block Words in Member Profile Names. Add the words or regex patterns to the custom words list. The filter will run whenever a new member joins or an existing member changes their profile.
Can AutoMod auto-ban users with offensive usernames?
No. AutoMod can block a username change or join attempt, but it cannot ban or timeout users based on their username alone. The recommended workaround is enabling the Send Alert action so moderators can react quickly when a violation is detected.
How do I use regex or wildcards in AutoMod?
Wrap a substring with asterisks to enable partial matching. For example, the pattern *scam* will match scammer, scam-link, and scam2024. You can also use character classes like [0-9] to match specific characters. Discord uses a limited regex engine, so avoid advanced features.
Conclusion
Learning how to block words in Discord usernames comes down to three layers: enabling AutoMod, turning on the Block Words in Member Profile Names checkbox inside your rule, and building a custom word list that mixes plain terms with asterisk wildcards for partial matches. Add the right response actions, exempt your staff and special channels, and update the list monthly based on real incidents, and you will save yourself hours of manual moderation every week. AutoMod is not a silver bullet; for full-coverage moderation you will still want a dedicated bot and active human moderators. But for a free, native solution that handles the bulk of offensive usernames and chat content, it is the best starting point Discord offers in 2026.