Anti-raid

Best Discord Anti-Raid and Anti-Nuke Bot: What to Look For

The best Discord anti-raid and anti-nuke bot acts on its own the moment an attack starts. It catches join waves, caps what each staff account can do, undoes damage, locks down in an emergency, and spares your trusted bots. Security Bot is the most-used security bot on Discord, used in more than 1.5 million Discord servers. It does all six.

By Sina, Founder, Security BotUpdated 4 min read

The checklist

Look forWhy it matters
Detects join spikes against your normal rateA fixed number either misses raids or flags busy days.
Acts automaticallyRaids and nukes rarely happen while moderators are online.
Limits per staff memberMost nukes come from an account that already has permissions.
Undo and recoverySomething always gets through before the punishment lands.
Emergency lockdownFor when an admin account is the attacker.
Handles trusted bots and staffFalse alarms cost you staff, bots, and trust in the bot.

1. Detects join spikes, not just join counts

A raid is many accounts joining at once. A bot that only counts joins either fires on a busy day or misses a slow raid. It should compare joins with your server's normal rate.

Security Bot: free Join Guard is on by default. When the last minute has at least 25 joins and five times your usual rate, it pauses invites for 30 minutes. Nobody is banned, and Resume invites undoes it in one click.

On Premium, anti-raid scores each join on account age, join speed, and avatar. A raid needs a high score and a surge: at least 20 joins in 2 minutes, at five times your usual rate.

2. Acts automatically

Security Bot: anti-nuke acts on the action that reaches a limit, with no moderator online. Premium anti-raid pauses invites, locks the channels you chose, then times out or bans the high-scoring raid accounts, up to 200 per request.

After an attack, Security Bot sends one attack report to the security log and the owner's DMs. It says what happened, what it stopped, what got through, and what to fix.

3. Limits per staff member

A nuke usually comes from inside: a phished admin, or a bot someone gave Administrator. So the bot must cap what each account can do.

Security Bot: free anti-nuke limits bans, kicks, and channel and role creates and deletes per member. Each action counts for 10 minutes. Pruning members and handing out dangerous permissions are acted on the first time.

A member gets a DM one action before their limit. At the limit, the default punishment is Clear Roles. Free Beast Mode adds up risky actions across the whole server, to catch attacks split over several accounts.

4. Undo and recovery

  • Give roles back: one button returns what Clear Roles took, for 7 days.
  • Undo this raid: unbans everyone a Premium raid ban hit.
  • Resume invites: ends an invite pause from the log or the owner's DM.
  • Recovery (Premium): backups plus a 90-day bin of deleted roles, channels, categories, and emojis.

Recovery restores after a preview, but only what was deleted after you turned it on. See how to recover a server after a nuke.

5. Emergency lockdown

Security Bot: /emergency lockdown takes Administrator, Ban, Kick, and Manage Channels, Roles, Server, and Webhooks from every role it can edit. /emergency restore gives them back. Only the owner, or someone on the Users: All whitelist, can run them. Both are free.

To stop all messages too, /lockall locks every text channel and /unlockall puts them back.

6. Handles trusted bots and staff

Security Bot: a new bot with dangerous permissions loses them instead of being kicked, and the owner gets an Allow the bot button. Well-known verified bots on its trusted list can do their usual work, like a ticket bot creating channels.

Moderation bots get three times your ban and kick limit, because bans made through them count against the bot. Staff you trust can be whitelisted per action, or trusted with one button on the log.

Questions to ask any anti-raid or anti-nuke bot

  • What happens to a staff member who goes over a limit, and can I undo it?
  • Does it compare joins with my server's normal rate?
  • Which actions does it count, and which does it act on the first time?
  • Which permission does it need, and where must its role sit?
  • Does it tell me afterwards what got through?

Set up Security Bot in a few minutes

Add the bot, move its role above your staff roles, and run /setup for the recommended settings. Then run /scan to see what's still open. The setup guide walks through each step.

Do this with Security Bot

Discord Anti Nuke Bot: Stop nukes as they happen with per-user limits, automatic punishments, owner alerts, and attack reports.

Security Bot is a Discord anti nuke bot that watches bans, kicks, channel and role changes, and bot adds as they happen. The moment an account reaches a limit, it loses its roles or is kicked or banned. The owner gets a DM and an attack report.

Frequently asked questions

What is the best anti-raid and anti-nuke bot for Discord?

One that acts on its own, compares joins with your normal rate, limits each staff member, can undo its own actions, and spares trusted bots. Use the checklist above to judge any bot.

Is Security Bot's anti-nuke free?

Yes. Anti-nuke, Beast Mode, Join Guard, emergency lockdown, and attack reports are free. Score-based anti-raid, 10 more anti-nuke triggers, and Recovery are part of Premium.

Will anti-nuke punish my own staff?

Only if they go over a limit, and they get a DM one action before it. The default Clear Roles punishment can be undone with Give roles back, and you can whitelist staff per action.

Does Join Guard ban anyone?

No. It only pauses invites for 30 minutes. Members already in the server are not affected, and you can resume invites with one click.

What is the difference between anti-raid and anti-nuke?

Anti-raid deals with outsiders joining in a wave. Anti-nuke deals with accounts already inside that have permissions, such as a hacked admin or a bad bot.

How this guide was made: drafted with AI assistance, then checked against Security Bot's source code and Discord's official help articles. Spotted something out of date? Tell us in the support server.