Your Discord server is valuable. It represents your community, conversations, and relationships - and it's worth protecting.
In 2026, Discord server attacks come in several forms: raids (mass joins that spam channels), bot floods, phishing attempts targeting admin accounts, and coordinated attacks from external communities. A single compromised admin account can delete your entire server.
The good news: with the right setup and awareness, you can prevent most attacks before they happen.
The Four Threat Categories
Before diving into defenses, understand what you're defending against.
Raids and Member Attacks Raids happen when coordinated users (often a hostile community) join your server simultaneously and spam, post offensive content, or delete channels. Discord has roughly 19 million active servers monthly, and raids affect thousands of communities per week. A single raid can damage trust and take hours to clean up.
Bot Spam Malicious bots flood your server with messages, spam links, or attempt to escalate privileges. Unlike raids (human users), bot spam is automated and can overwhelm moderation.
Phishing and Scams Attackers pose as staff, offer fake Nitro, or send messages with malicious links that steal Discord tokens (a token grants full account access). Compromise of a staff account often precedes a full server takeover.
Admin Account Compromise If someone gains your admin password or 2FA codes, they can delete your entire server, lock out the owner, and steal data. This is the nuclear option.
Layer 1: Verification Levels (Your First Defense)
Discord's built-in verification system is your cheapest defense. It costs nothing and blocks most casual attacks.
Understanding the Five Levels
- Level 0 (None): Anyone can see and chat. No protection. Use only for private friend servers.
- Level 1 (Low): Requires verified email. Blocks throwaway accounts but not organized raids.
- Level 2 (Medium): Requires verified email + 5-minute membership. Delays raids. Most servers should start here.
- Level 3 (High): Requires verified email + 10-minute membership. Good for larger servers. Visible friction for legitimate new members.
- Level 4 (Very High): Requires membership + manual gate (members must react to a message). Maximum friction, only for high-trust communities or after active attacks.
Set Your Level
Go to Server Settings → Safety Setup → Verification Level. The recommendation:
- New servers: Level 2 (Medium). It's a good balance-stops casual spam without annoying real members.
- 1,000+ members: Level 2 or 3. You need the friction to slow organized attacks.
- Active raid target: Level 3 (High). The 10-minute delay stops most raids cold.
- After a raid happens: Jump to Level 4 temporarily. Once things stabilize, drop back to Level 2 or 3.
Verification alone isn't enough, but it's your foundation.
Layer 2: AutoMod and Keyword Filters
Discord's AutoMod system runs 24/7 without human intervention. Set it up in Server Settings → AutoMod.
AutoMod Rules to Enable
Spam Detection
- Enables: Raid detection (multiple new accounts posting simultaneously), mention spam, repeated messages
- Action: Timeout for 10 minutes (good for testing), or Mute for 1 hour (safe for established servers)
- Why: Catches bot floods and raid activity automatically
Links and Invites
- Enable: Block invite links (unless from trusted roles)
- Action: Delete silently or send to mod channel for review
- Why: Phishing often comes via link shorteners. Invite links invite raids.
Keyword Filter
- Add: Server-specific blocked terms (slurs, harassment, phishing domain list)
- Action: Delete + send to mod channel
- Why: Catches problematic content before humans see it. Add domains you discover in raids.
New Accounts
- Flag: Accounts younger than 24 hours in raid-prone categories
- Action: Timeout or automatic role-gate
- Why: Organized raids use throwaway accounts
Mention Spam
- Limit: Max 5 @mentions per message
- Action: Timeout
- Why: Stops @everyone/@here spam and targeted harassment
Advanced Keyword Strategy
Start with a general keyword list (community guidelines, banned slurs). Over time, add server-specific terms that signal spam or attacks (previous raid phrases, known scam links, impersonation patterns). Review mod reports weekly to catch new patterns.
Layer 3: Moderation Bot with Raid Mode
AutoMod catches patterns, but you need a moderation bot for advanced threat response. The top choices in 2026:
Dyno
- Raid mode: Auto-kicks new accounts if X joins in Y seconds
- Logging: Full audit trail of joins, leaves, deletions, role changes
- Automod: Redundancy to Discord's AutoMod
- Set: Raid mode to kick 5+ accounts in 5 seconds
MEE6
- Similar raid detection and logging
- Better uptime record historically
- Set: Raid protection + logging enabled by default
Carl-bot
- Smaller but reliable
- Strong custom command support
- Set: Basic raid detection
Configure Raid Detection
In your bot's dashboard:
- Enable raid mode
- Set sensitivity: Flag 5+ joins in 10 seconds
- Action: Auto-kick + notify mod channel
- Review logs in your mod channel
When raid mode triggers, you'll see instant notifications. This gives mods 30 seconds to react before damage compounds.
Layer 4: Admin Account Security (Critical)
A compromised admin account is a full server compromise.
Required Security
Two-Factor Authentication (2FA)
- Go to User Settings → Account
- Enable Two-Factor Authentication
- Save your recovery codes in a password manager (not a note)
- Require 2FA for all admin-level users: Server Settings → Admin
- Make it a staff rule: "All admins must enable 2FA"
This single step blocks 99% of account takeovers.
Password Security
- Use a unique password (not reused across accounts)
- Use a password manager (Bitwarden, 1Password, KeePass)
- If you suspect compromise, change it immediately
- Check your active sessions weekly: Settings → Active Sessions → log out unknown sessions
Email Account Security Your Discord account's email is the recovery backdoor. If someone gains your email, they can reset your Discord password.
- Enable 2FA on your email account too
- Use a strong, unique password
- Check login activity regularly
Beware Token Exposure Discord tokens are the "master key." Never:
- Paste your token in Discord, GitHub, or forums
- Share it with bots or "verify" websites
- Click links claiming to show your token
If you accidentally leak a token:
- Rotate it immediately: User Settings → Advanced → Regenerate Token (or just change your password)
- Check your active sessions and log out unknown ones
- Report the incident to Discord Trust & Safety if it involves malice
Layer 5: Channel Security and Role Gates
Structural defenses make it harder for attackers to do damage.
Role Hierarchy
- Admin role: Positioned above all other roles. Only owner and 1-2 trusted co-admins.
- Moderator role: Can delete messages, mute, kick, but NOT delete channels or manage roles.
- Trusted member: For active community leaders. Can manage specific channels only.
- @everyone: Deny dangerous permissions (Manage Channels, Manage Roles, Ban Members, Kick Members, Delete Messages)
Never give Administrator permission lightly. "With great power comes great responsibility" - and great liability if that account gets hacked.
Channel Locks
Create a #admin-only channel with:
- Visibility: Moderator role + above only
- Purpose: Staff discussion, incident response, security decisions
- Backup: If chaos breaks loose, staff can coordinate here
For your most important channels (#rules, #announcements):
- Deny Send Messages for @everyone
- Allow Send Messages for Staff role only
- Set to read-only for the community
Layer 6: Incident Response Plan
Despite your best efforts, a raid may happen. Here's how to respond.
When a Raid Starts
- Immediate: Lock all channels - Server Settings → Permissions → @everyone → Deny Send Messages
- Contact mods: Drop a message in your private mod channel (if you have one) and reach out via Discord/Discord server calls
- Gather evidence: Screenshots of raid messages, join times, usernames (for reporting)
- Auto-kick invaders: If your bot is still working, trigger raid mode manually
- Delete spam: Work through channels and delete offensive/spam content. Bots can speed this up.
After the Raid
- Ban and report: Ban all raid accounts. Report the most severe to Discord Trust & Safety if it involves threats.
- Review logs: Check what was said and deleted. Screenshot anything important.
- Notify your community: Post a brief message in #general: "We experienced a security incident. All attackers have been removed. We're reviewing our security measures."
- Debrief with staff: What worked? What failed? Did AutoMod catch it? Did the raid mode kick users? Improve based on what you learned.
- Tighten verification: Bump your verification level up for 48 hours, then decide if you want to keep it higher.
Report to Discord
If the raid involved threats, harassment, or targeted hate speech:
- Go to Discord's Trust & Safety contact: discord.com/safety
- Provide: Server ID, raid timeframe, screenshots, main attackers
- Discord may investigate and take action against the attackers' accounts
Layer 7: Staff Training and Community Culture
Your best defense is an aware community and trained staff.
Train Your Mods
- Recognize raid indicators: coordinated new accounts, spam patterns, similar messages
- Know what phishing looks like: "Click here to verify your account," fake Nitro, "free boosts"
- Understand escalation: never give admin to anyone you haven't personally met
- Document incidents: save screenshots, record join times, note which users joined together
Communicate with Your Community
Post in #rules or #announcements:
Stay Safe on Our Server
We value security. Here's what to know:
- Staff will NEVER DM you unsolicited asking for your password or verification
- Don't click links from unknown users
- Report suspicious activity to @mods
- Never share your Discord token (the keys to your account)
This simple message prevents most scams. When your community knows attacks are possible, they're less vulnerable.
Monitoring and Ongoing Security
Security isn't a one-time setup. Monitor actively:
- Weekly: Check active sessions in Discord (Settings → Active Sessions). Log out unknown ones.
- Monthly: Review your AutoMod rules. Add new blocked keywords if you see patterns.
- Quarterly: Audit admin accounts. Remove inactive admins. Review role permissions.
- After any incident: Increase verification, run a security drill, update your incident response plan.
Rally helps too - list your server on Rally to reach engaged communities and reduce reliance on public Discord discovery (which attracts more random raids). Rally's activity-based ranking means your community is visible to people actually looking to join and participate, not drive-by raiders.
Protecting your server means thinking like a defender - layers of cheap early warnings, clear escalation procedures, and a community that knows the threats. Do that, and raids become nuisances, not disasters.