How to stop NSFW spam on Discord
NSFW spam is mostly images, so word filters do not catch it. These are the settings and tools that do, in the order to set them up.
By SfwBot Team5 min read

NSFW spam on Discord is mostly images, GIFs and videos, so a word filter does not catch it. Three things do: Discord's own explicit image filter, tighter permissions for new members, and a bot that looks at every image and deletes nudity. This article goes through them in the order to set them up.
Where NSFW spam comes from
Most of it arrives in one of two ways. Either an account joins through a public invite and posts explicit images until someone removes it, or the account of a regular member is taken over and used for the same thing. In both cases the account posts in several channels within seconds.
The text of these messages is often empty or harmless. That is why a blocked-word list or Discord's keyword rules do little here. Whatever stops the spam has to look at the image itself or keep the account from posting images at all.
Step 1: turn on Discord's explicit image filter
Discord has a filter of its own for servers. In Server Settings, open Safety Setup and look for the explicit image filter. When it is on, Discord blocks messages with images it considers explicit in every channel that is not marked as age-restricted.
It costs nothing and takes a minute, so switch it on first. It has limits you should know about:
- You cannot choose how strict it is. It targets explicit images and leaves revealing ones alone.
- It does not tell your moderators what it blocked or who posted it.
- A blocked image has no consequence for the account that posted it.
Discord moves these menus from time to time. If you cannot find the setting, search Discord's support site for "explicit image filter". For a closer look at the differences, see Discord's explicit image filter compared with SfwBot.
Step 2: limit what new members can post

An account that cannot attach files cannot spam images. Two settings do most of the work:
- In Server Settings, under Roles, remove Attach Files and Embed Links from the
@everyonerole. Give both permissions to a role that members receive after some time or after a check by your team. - In Safety Setup, raise the verification level. At the higher levels a new member must have been on the server for ten minutes, or have a verified phone number, before they can write.
This does not help against an account that already has the trusted role, such as a taken-over regular. For that case you need the next step.
Step 3: add a bot that scans images
A scanning bot checks every image when it is posted, whoever posts it. SfwBot does this for images, GIFs and videos, including images in link previews and forwarded messages.
- Open the dashboard, sign in with Discord and choose Add SfwBot next to your server.
- Type
/setupin any channel. Pick a log channel that only your moderators can read. - Choose the level where blocking starts: 1 revealing, 2 implied nudity or 3 explicit. A new server starts at 3.
From then on the bot deletes media at or above your level and posts each deletion to the log channel, with the member, the channel and the level it found. The nudity detection guide describes every option.
Scans use credits. Every server gets credits each month on the free plan, and the amounts are on the pricing page.
Step 4: give repeat offenders a consequence

Deleting images one by one does not stop an account that keeps posting. Two settings in SfwBot handle that:
- Your block list. Add an image to the block list, by its link with
/settingsor from the message menu Apps, Add to block list. It is removed everywhere on your server from then on, without a scan, and near-identical copies match too. - Trust and strikes. Each violation costs the member trust. At zero the member gets a strike and the action you chose for it: a timeout, a kick or a ban. The system is off on a new server. See the trust and strikes guide.
If the spam comes with invitations to other servers, switch on the invite filter as well. It removes invite links and can time the member out.
When the wrong image is deleted
Any image model makes mistakes, and a stricter level means more of them. Each log entry in SfwBot has a Report as wrong button that sends the decision to review. An image you add to your allow list is never removed on your server again.
If you want to see what the bot would remove before it removes anything, switch off Delete blocked content on the Nudity page for a few days. The bot then only reports to the log channel and a moderator decides.
Frequently asked questions
Does Discord have a built-in NSFW filter for servers?
Yes. The explicit image filter in Safety Setup blocks images Discord considers explicit in channels that are not age-restricted. You cannot set its strictness, and it does not report to your moderators.
Can a bot scan GIFs and videos too?
SfwBot scans images, GIFs and videos. Stickers, custom emojis and media posted by other bots are checked only if you switch that on. Files larger than 32 MB are not scanned.
Does image scanning slow my server down?
No. The message appears as usual and is deleted a moment later if the scan finds nudity at or above your level.
Can I still have an NSFW channel?
Yes. Channels marked as age-restricted in Discord are skipped by default, and you can exempt other channels yourself.


