Security tips

Security tips

Most servers fall because of a stolen account or one permission too many, not a technical flaw. Tick each tip you apply: your progress stays saved on this device.

Protect your Discord account

A stolen administrator account opens every door of the server.

  1. Turn on two-factor authentication

    Essential

    User Settings, My Account, then Enable Two-Factor Auth. Use an authenticator app rather than SMS, and keep the backup codes somewhere other than your computer.

    A server can also require two-factor authentication for its moderators: Server Settings, Safety Setup.

  2. Use a unique password

    Essential

    If your Discord password is used elsewhere, a single leak is enough. A password manager creates a long, unique one for every site.

  3. Never scan a QR code someone sends you

    Essential

    "Scan this code to verify your account" or "to get your Nitro": scanning a login QR code with the Discord app logs the other person into your account. Discord will never ask you to do that.

  4. Beware of fake Nitro and fake moderators

    Essential

    Free Nitro, a fake message from the Discord team, "your account will be banned, click here": always check the address before logging in. The only login domain is discord.com. When in doubt, Protector's /scan command checks a link without opening it.

  5. Never run a file received in DMs

    Essential

    "Try my game", "install this software for the stream": these programs steal your session token, which bypasses two-factor authentication. No .exe, .scr, .bat file or script should come from a stranger.

  6. Never paste code into the browser console

    Recommended

    If someone asks you to open the developer tools (Ctrl+Shift+I) and paste some text into them, it is an attempt to steal your account, without exception.

  7. Clean up your authorized apps

    Recommended

    User Settings, Authorized Apps: remove the ones you no longer use or do not recognize. An authorized app can act on your behalf within the permissions you granted.

  8. Check your logged-in devices

    Recommended

    User Settings, Devices: log out any device you do not know, and use "Log out all known devices" at the slightest doubt.

  9. Protect your email address too

    Advanced

    Whoever controls your mailbox can reset your Discord password. Turn on two-factor authentication on your email account as well.

  10. Keep the owner account separate from your everyday account

    Advanced

    For a large server, an account dedicated to ownership, rarely used and on a single device, greatly reduces the risk of theft.

Lock down your server

Every permission you grant is a door: only open the ones you use.

  1. Put Protector's role at the very top

    Essential

    Discord never lets a role act on a role above it. If an attacker has a role higher than Protector, the bot can neither sanction them nor restore what they destroy. Run /diagnostic to check.

  2. Keep Administrator to a strict minimum

    Essential

    Administrator bypasses every other permission. Give precise roles instead (Kick Members, Manage Messages…) and keep Administrator for yourself.

  3. Keep critical protections in your hands

    Essential

    Anti-raid, anti-nuke and anti-spam are reserved to the owner. If you want to delegate, choose a security role in /config, General, and only give it to people you trust completely: Protector removes that role from anyone who receives it from someone other than you.

  4. Keep bot quarantine enabled

    Essential

    A bot added by a compromised administrator can destroy everything in seconds. With quarantine, every new bot joins with no permissions until you approve it in a private message.

  5. Set up a verification gate

    Recommended

    A captcha or a verification button stops most raids run with automated accounts. /autoconfig creates it for you, /verification-setup sets it up by hand.

  6. Remove sensitive permissions from @everyone

    Recommended

    @everyone should never be able to mention everyone, manage webhooks, create invites in every channel or use external apps without a reason.

  7. Review webhooks and integrations

    Recommended

    Server Settings, Integrations: delete unknown or abandoned webhooks. A webhook whose address leaked lets anyone post anything in the server's name.

  8. Enable the event log

    Recommended

    Without a log, there is no way to know who changed a permission or deleted a channel. At least enable the Roles, Channels, Server and Webhooks categories in /config.

  9. Require two-factor authentication for moderation

    Recommended

    Server Settings, Safety Setup: members without two-factor authentication can no longer use moderation actions, even if their role allows it.

  10. Create a backup before every big change

    Advanced

    /backup create captures roles, channels, permissions and recent messages. After a mistake or an attack, /restore puts everything back.

  11. Watch your vanity invite

    Advanced

    An attacker who removes the vanity link can claim it for another server. Protector warns the owner at once: act fast to get it back.

  12. Promote staff gradually

    Advanced

    Do not give a moderation role to a new account or someone who just joined. Protector's staff guard blocks these risky promotions and alerts you.

In an emergency

Already happened? Here is what to do, in order.

The first minutes matter. Follow these steps calmly: each one closes a door on the attacker.

Your account was stolen

If you can still log in, act right now. Otherwise, go straight to step 4.

  1. Change your password: this logs out other sessions and invalidates the stolen token.
  2. Enable or reset two-factor authentication, and generate new backup codes.
  3. Remove authorized apps and devices you do not recognize.
  4. Contact Discord support at dis.gd/request if you lost access to the account.
  5. Warn your servers and scan your computer if you ran a suspicious file.

Your server is under attack

Protector is already reacting automatically. These actions speed up the return to calm.

  1. Run /panic: locks every channel, revokes invites and filters joins.
  2. Remove the attacker's roles or kick them, then check recently added bots.
  3. Read the event log to find the source (stolen account, bot, webhook).
  4. Restore with /restore if the automatic restore did not cover everything.
  5. Report the attacker on the support server and ask for help on the support server.