basics

Discord Auto-Moderation Setup: Filter Spam, Links & Bad Words

Learn how to configure Discord's built-in Auto-Moderation system to filter spam, block malicious links, and suppress bad words—no bots required! ✅

November 5, 2026 · 149 views

Discord Auto-Moderation is a powerful, native server safety feature that helps moderators proactively filter spam, suspicious links, and harmful language—without installing third-party bots. As of 2026, it’s available to all servers (including those without Boosts), making it the go-to Discord auto-moderation setup for communities prioritizing safety, scalability, and simplicity. Whether you're managing a small hobby server or a growing education hub, mastering this tool is essential for healthy moderation hygiene 🛡️.

In this comprehensive Discord server setup guide, we’ll walk you through configuring Auto-Moderation step-by-step—including real-world examples, best practices, and common pitfalls to avoid. You’ll learn how to fine-tune rules for maximum effectiveness while preserving community voice and trust.

Why Use Discord Auto-Moderation? (Not Just for Big Servers)

Before diving into the setup, let’s clarify why this native tool matters more than ever in 2026:

  • ✅ No bot permissions needed: Unlike legacy moderation bots, Auto-Moderation runs natively—no Manage Messages, Ban Members, or scary permission scopes.
  • ✅ Real-time enforcement: Rules trigger before messages appear (for members without bypass roles), reducing exposure to harmful content.
  • ✅ Audit-friendly: Every action appears in your Server Audit Log with clear context (e.g., "Auto Moderation Rule Triggered: 'Suspicious Link'").
  • ✅ Scalable & low-maintenance: Once configured, it works 24/7—even while your mods sleep 😴.

Note: Auto-Moderation is not a replacement for human judgment—but it is your first line of defense. Think of it as your tireless, rule-following assistant who never misses a shift.

Prerequisites: What You’ll Need Before Setup

Before creating rules, ensure your server meets these minimum requirements:

  1. You must have the Manage Server permission (typically held by Admins and trusted Mods).
  2. Your server must be on Discord’s latest stable version (auto-updated; no action needed if using desktop/web or mobile v195+).
  3. (Optional but recommended) A dedicated Moderator role with View Audit Log enabled—so your team can review triggered actions.

💡 Pro Tip: Create a test channel (e.g., #mod-testing) and invite a friend with a non-mod role to validate rules before deploying them server-wide.

Step-by-Step Discord Auto-Moderation Setup

Let’s build three foundational rules: Spam Detection, Link Filtering, and Keyword Suppression. We’ll use Discord’s intuitive UI (no code required), but we’ll also highlight advanced options where relevant.

Step 1: Access Auto-Moderation Settings

  1. Open Server Settings (⚙️ gear icon next to your server name).
  2. In the left sidebar, click Auto Moderation (under Moderation).
  3. Click + Create Rule.

You’ll see three rule templates: Spam, Keywords, and Invite Links. We’ll customize each manually for precision.

Step 2: Set Up Spam Detection

Spam isn’t just repeated messages—it includes rapid-fire posting, identical content across channels, or burst activity from new accounts.

  1. Click + Create Rule, then choose Spam as the rule type.
  2. Name it clearly: e.g., 🚨 Detect Message Bursts & Copy-Paste Spam.
  3. Under Trigger, keep defaults (they’re well-tuned):
    • Number of messages sent by a user within 5 seconds → triggers at 5+ messages
    • Number of identical messages sent by a user within 10 seconds → triggers at 3+ copies
  4. Under Response, select Timeout (recommended for first offense) or Block Message (more aggressive). For most communities, start with Block Message + send alert to #mod-alerts.
  5. Under Exempt Roles, add @Moderator, @Admin, and any verified/trusted roles.
  6. Toggle Enable Rule, then click Save.

✅ Example: A user pastes the same crypto scam link 4 times in #general within 8 seconds → message blocked, mod log entry created, and optional DM notification sent.

Step 3: Filter Harmful & Untrusted Links

Discord’s default link filter catches obvious invites (discord.gg/xxx), but custom rules catch shortened URLs, phishing domains, and newly registered malicious sites.

  1. Click + Create Rule, choose Keyword (yes—link filtering uses keyword patterns! 💡).
  2. Name it: 🔗 Block Malicious & Shortened Links.
  3. Under Trigger, select Custom Keyword Set.
  4. Click + Add Keyword, then enter regex-style patterns (Discord supports basic regex via * wildcards and literal strings):
    bit.ly/*
    t.co/*
    tinyurl.com/*
    hxxps://*
    http://*.xyz
    
    ⚠️ Note: Avoid overblocking—don’t ban https:// globally. Focus on known risky patterns.
  5. Under Response, choose Block Message, then enable Send Alert to Channel → pick #mod-alerts.
  6. Under Exempt Roles, add your Verified, Staff, and Education roles.
  7. Enable and save.

📌 Bonus: Use DiscordCraft’s Free Link Risk Checker to scan suspicious domains before adding them to your list.

Step 4: Suppress Bad Words & Toxic Language

This is where nuance matters. Auto-Moderation supports keyword sets, not AI sentiment analysis—so avoid blanket bans on complex terms. Instead, focus on unambiguous slurs, doxxing phrases, and coordinated hate speech.

  1. Click + Create Rule, choose Keyword.
  2. Name it: 🤬 Block Slurs & Doxxing Phrases.
  3. Under Trigger, select Custom Keyword Set, then add terms exactly as they’d appear (case-insensitive, whole-word matching by default):
    n****r
    k****r
    dox me
    your address is
    I know where you live
    
    ✅ Pro tip: Use asterisks only for known variants—Discord does not support full regex like /n.*?g/gi. Keep lists minimal and evidence-based.
  4. Under Response, choose Timeout for 10 minutes (first offense) + alert channel.
  5. Enable Alert users when their message is blocked (transparency builds trust!).
  6. Save.

🚫 Avoid: stupid, idiot, hate — these lack context and risk overblocking in debates or memes.

Advanced Configuration Tips

Once your core rules are live, level up with these enhancements:

  • Rate-limiting per channel: Create separate spam rules for #announcements (stricter) vs #memes (looser).
  • Role-based exemptions: Give @Trusted Member (with 30+ days tenure) auto-exemption from link filters.
  • Escalation paths: Chain rules—e.g., first bad-word trigger = timeout; second in 24h = 1-hour timeout; third = ban (via manual mod action or bot webhook).
  • Audit Log automation: Connect Discord’s Audit Log webhook to Notion or Slack using Zapier—get notified and archived.

[Image: Discord Auto-Moderation dashboard showing 3 active rules with status badges and last-trigger timestamps]

Quick Tips for Long-Term Success

  • 🔄 Review weekly: Check Server Settings > Auto Moderation > Logs for false positives. Adjust keywords or thresholds accordingly.
  • 📈 Track metrics: Note how many messages were blocked/timeout per rule (visible in logs). If Spam fires >50×/day, consider adding CAPTCHA verification via Discord’s Membership Screening.
  • 🤝 Communicate clearly: Pin a #rules message explaining why links/bad words are filtered—and how to appeal. Transparency reduces friction.
  • 🧩 Combine with tools: Auto-Moderation + DiscordCraft’s Moderation Playbook = faster onboarding for new mods.
  • 🌐 Localize carefully: If your server is multilingual, create separate keyword sets per language—not one overloaded list.

FAQ: Common Auto-Moderation Questions

Q: Does Auto-Moderation work in DMs or group chats?
A: No—it only applies to messages sent within your server (text, threads, and stage channels). DMs require user-level privacy controls.

Q: Can I export or backup my Auto-Moderation rules?
A: Not natively—but DiscordCraft offers a free Auto-Moderation Exporter CLI (Python-based) that snapshots rules to JSON.

Q: Why did a harmless message get blocked?
A: Most often due to overbroad keywords (e.g., blocking ass → blocks “class”) or wildcard misuse (*.xyz catching my-site.xyz). Always test in #mod-testing first!

Q: Do members see which rule blocked their message?
A: Yes—if you enabled Alert users in the rule response, they’ll receive an embedded message naming the rule (e.g., “Your message was blocked by rule: 🔗 Block Malicious Links”).

Final Thoughts: Auto-Moderation Is Just the Start

A robust Discord server setup doesn’t end with Auto-Moderation—it begins there. This native layer buys your team time, reduces burnout, and creates consistent expectations. Pair it with clear guidelines, empathetic human moderation, and proactive community culture-building… and you’ve got a thriving, safe space.

Remember: Great moderation isn’t about catching every violation—it’s about preventing harm before it spreads. With thoughtful Discord auto-moderation setup, you’re not just reacting—you’re protecting, empowering, and leading.

Ready to go further? Explore DiscordCraft’s Auto-Moderation Health Check for personalized optimization tips based on your server size and activity patterns. 🚀