Security help › Discord security
Lock down your Discord server
Owners and admins: how to stop raids, nukes and hacked moderators wrecking your server.
Settings to turn on
- Make two-step login compulsory for moderators: Server Settings → Safety Setup → "Require 2FA for moderator actions". A stolen password alone then can't ban or delete anything.
- Raise the verification level (Server Settings → Safety Setup): at least "Medium" (account must be over 5 minutes old) for public servers.
- Turn on AutoMod (Server Settings → AutoMod): block mention spam, suspected spam content, and words like "nitro" with links, and limit links in new members' messages.
- Turn on raid protection and activity alerts in Safety Setup, so you hear about join floods and DM spam.
- Stop @everyone and @here for normal roles (Server Settings → Roles → @everyone → Mention @everyone: off).
Permissions: give less
- Hardly anyone needs Administrator. Not bots, not moderators. Give the exact permissions each role needs instead.
- Keep powerful roles near the top. A role can only manage roles below it, so put your moderator roles above everything they shouldn't touch.
- Be careful with "Manage Webhooks", "Manage Server" and "Manage Roles". Each is nearly as powerful as Administrator in the wrong hands.
- Check bots before adding them. Use well-known bots, look at the permissions they ask for, and remove bots you no longer use.
Webhooks are passwords
Anyone with a webhook link can post in that channel as anything, including fake announcements with scam links. Check Server Settings → Integrations → Webhooks, delete ones you don't recognise, and never paste a webhook link in public or into code on GitHub.
Plan for a bad day
- Know how to strip a hacked moderator's roles fast (and have more than one trusted owner-level person who can).
- Check the Audit Log (Server Settings → Audit Log) to see who did what.
- Keep a server template (Server Settings → Server Template) so channels and roles can be rebuilt after a nuke.
- If your custom invite might be lost (boost level dropping), update links on your website and socials so nobody else can claim it and fool your members.