Skip to content

Discord security bot: what it does and when you need one

Raids, nukes, scam links and explicit images each need a different tool. This sorts them by threat and shows where Discord's free settings are enough.

By SfwBot Team7 min read

A Discord security bot protects a server against attacks that moderators cannot answer by hand fast enough: raids, nukes by a rogue admin or bot, scam links and member accounts that were taken over. Discord's own Safety Setup, AutoMod and Security Actions already cover part of this for free, so a security bot is there for what is left, which on most servers means protection against nukes and filtering of new joins.

"Security bot" is a loose label: some bots that use it only guard against nukes, others mostly filter messages. Start from the threat you actually have.

Threats, Discord's built-in tools and the kind of bot for each

ThreatDiscord built-inKind of bot
Raid or join floodRaid protection, verification level, Security ActionsAnti-raid bot
Nuke by an admin or a bot2FA requirement for moderation, few admin rolesAnti-nuke bot
Scam and phishing linksAutoMod keyword and spam rulesLink filter with a domain list
Taken-over member accountsAutoMod spam rule, timeouts by handSpam filter with automatic timeouts
Explicit imagesExplicit image filterImage scanner
Alt accountsVerification levelVerification or join gate bot

The bots named below are described from their own websites, which you should check for current features before you invite one.

Raids and join floods

A raid is a group of accounts that joins at the same time and floods your channels; see what a Discord raid is.

Set up Discord's own tools first:

  • Verification level in Server Settings, Safety Setup. Medium requires an account older than five minutes, High requires ten minutes of membership in your server before posting, Highest requires a verified phone number.
  • Raid protection, also in Safety Setup, looks for signs of a join raid, acts on it automatically and can post an alert in a channel you choose.
  • Security Actions in the server menu pause invites, and direct messages between members who are not friends, while a raid is going on.

Anti-raid bots watch the pattern of joins and act on the accounts. Beemo says its detection runs in the background and bans suspected raiders. Wick lists Anti-Raid as a premium feature, plus a lockdown system that can close joins, invites or single channels. The bot named Security lists Anti Raid and a Beast Mode that switches on when suspicious actions pass a threshold.

Nukes by a rogue admin or bot

A row of falling dominoes stopped by one block

A nuke is an account with high permissions deleting channels and roles or banning members in bulk. The account is often a moderator whose login was stolen, or a bot with Administrator that was compromised.

Discord does not limit how many channels an admin may delete. What it offers:

  • 2FA requirement for moderation in Safety Setup. Only the owner can switch it on, after turning on 2FA for their own account. Moderators then need 2FA for moderation actions, so a stolen password alone is not enough.
  • Fewer roles with Administrator, Manage Channels, Manage Roles or Ban Members.
  • The Audit Log in Server Settings, which shows which account did what.

Wick's Anti-Nuke watches for mass creation or deletion of channels and roles and for mass kicks and bans, and its premium Backups restore the server state afterwards. Its Join Gate can also filter out bots that staff add without permission. Security's Anti Nuke lets you set limits on bans, kicks, deleted channels and roles and added bots, with an automatic response when one is crossed.

Most scam links are posted from real members' accounts that were taken over, often the same message in one channel after another. The post on Discord scam links covers the scams and what to tell a member who clicked.

Discord's AutoMod blocks keywords before a message appears, and on Community servers its spam rule blocks content Discord recognises as spam. A bot adds two things: a list of known scam domains that every link is compared with, and a spam filter that times an account out after a burst of messages.

Pick a timeout over a ban for these accounts. The real owner can come back once they have recovered the account.

Explicit images

Discord's Explicit image filter in Safety Setup blocks images Discord considers explicit, for all members or only for members without roles. Age-restricted channels are exempt. You choose who it applies to, but you cannot set how strict it is.

An image scanning bot rates each picture and removes it from the level you set. SfwBot is one of them.

Alt accounts

An alt is a second account of someone you banned, or one of many accounts made for a raid. The free filter is the verification level: Highest requires a verified phone number, which is harder to get again than an e-mail address.

Wick's Join Gate acts on joining accounts that match filters you set, and Security offers verification with a captcha or a one-click check. Read what such a bot stores about your members before you add it.

What SfwBot covers and what it does not

SfwBot has no raid mode, no join gate and no anti-nuke. It does not check new accounts and cannot restore deleted channels or roles. For those, run one of the bots above alongside it.

What it does is limit what each account can post:

  • Scam links. Link protection compares the domain of every link with a maintained list of scam and phishing websites, updated every 24 hours, and deletes the message.
  • Flooding. The spam filter counts messages and attachments per member within a short time. Switch on Time the member out for each check: a timeout stops a flood, while deleting only cleans up after it.
  • Invites and AutoMod. The invite filter removes invites to other servers. SfwBot can also write AutoMod rules for you, including the Discord Nitro scams pack on every plan and mention spam with raid protection on Plus and Pro.
  • Explicit images. Nudity detection is on from the start and removes explicit images, GIFs and videos from the level you choose.
  • Repeat offenders. With trust and strikes, a scam link is a critical violation by default and leads straight to a strike with the action you set.

Permissions and role order for security bots

A ring of small keys and one larger key on its own hook

Administrator for one bot at most. An anti-nuke bot may need it to act against other admins, and Wick's invite link asks for it. Give every other bot only what its job needs. A bot with Administrator can do the same damage as a nuke if its own account is compromised.

One bot per job. Two bots that ban the same raid accounts or time out the same spammer fill the log twice. Switch the overlapping feature off in one of them. The comparison of moderation bots helps you decide which bot does what.

Role order. A bot can only act on members whose highest role is below its own. If the security bot should stop a rogue admin, place its role above your staff roles. No bot can act on the server owner, which is why the owner account needs 2FA most of all.

Frequently asked questions

Do I need a security bot for a small server?

Usually not. A private server with invites you hand out yourself is covered by a verification level, AutoMod and the explicit image filter. A security bot helps once you have public invites or many people with admin rights.

What is the best security bot for Discord?

It depends on the threat. Wick and Security are built for nukes and raids, and Beemo for raids. For scam links and explicit images, a filtering bot such as SfwBot fits better.

Does SfwBot protect against raids?

SfwBot has no raid mode. Its spam filter, invite filter and nudity detection limit what each raid account can post, while pausing invites and banning the group stays with your team or an anti-raid bot.

Related articles