Discord Anti-Link Bot: Block Invites, Scam Links and Self-Bots
A Discord anti-link bot deletes messages that carry links you do not want, before members click them. Noxyr covers three kinds: invites to other servers, links that imitate Discord, Steam or Nitro, and the self-bot wave that posts the same picture and link in many channels. Each one has its own switch.
Which links cause the trouble
Not every link is a problem, so one blunt rule does not work. Servers usually fight three different things.
- Invite links to other servers, posted to pull your members away or to advertise.
- Scam links that copy a real site, such as a fake Nitro gift page.
- Self-bot waves, where a hijacked account posts the same image and link in channel after channel within seconds.
Noxyr treats them as separate rules, so you can turn on the ones you need and leave the rest.
Invite link filter
Run /security antiinvite enabled:True. Messages with an invite to another server are deleted. These are never filtered: admins, roles you allow, channels you allow, and by default invites to your own server.
| Option | What it does |
|---|---|
| allow_role, remove_role | Members with an allowed role may post invites (up to 25 roles) |
| allow_channel, remove_channel | Invites are fine in that channel or category (up to 25) |
| allow_own_server | Invites to your server are allowed, on by default |
| timeout_minutes | Also time the member out. 0 only deletes the message |
A partner channel or an advertising channel is the typical allow channel.
Scam links
The scam link rule deletes links that pretend to be Discord, Steam or Nitro. It catches lookalike letters, punycode and fake gift pages, and it also blocks any domains you add. Your allowed domains are never touched, and server admins are skipped. It is part of Noxyr's protection rules, configured with /security scamlinks, and every rule starts off.
Self-bot filter
Scam self-bots post one picture and one link many times fast. Run /security selfbot enabled:True. By default, when a member posts the same picture and link 3 times inside 120 seconds, every copy is deleted and the member is timed out for 60 minutes. You can change the threshold (2 to 10), the window (10 to 600 seconds) and the timeout.
Deletes are bundled per channel into one request, so a wave across ten channels does not hit Discord's rate limits.
Block GIFs too
A related rule, /security gifs enabled:True, deletes GIF uploads, Tenor and Giphy links, links ending in .gif and GIF stickers. Admins and allowed roles can still post them, and the member sees a short note that GIFs are off.
Switch a rule off in some channels
A single memes channel should not mean GIFs are blocked everywhere. Use /security ignore:
/security ignore action:Add rule:GIF block channel:#memesallows GIFs there./security ignore action:Add rule:Every rule channel:Staffruns no rule in the Staff category./security ignore action:Listshows every ignored channel and category.
Choosing a category covers every channel and thread in it, including ones made later. Every rule except anti-nuke can be ignored this way.
Permissions to check
The Security module must be on, and the bot needs Manage Messages to delete and Moderate Members to time people out. Everything is also on the dashboard under Safety, then Security, with an Ignore in these channels box on each rule. Set a staff alert channel first, so you can see what each rule caught.
Choosing the right action
Deleting the message is enough for a member who pastes an invite by mistake. For a repeat offender, add a timeout. A good split for most servers:
- Invite filter: delete only at first (timeout_minutes at 0), then add a short timeout if people keep testing it.
- Self-bot filter: keep the timeout. A real person almost never posts the same picture and link three times in two minutes, and the account is probably hijacked.
- Scam links: keep it on and check your alert channel in the first days for false positives, then add your own domains to the allowed list.
Records of what a protection rule caught are kept for 90 days, then deleted.
Common mistakes
Admins and allowed roles are skipped by design, so test the filter with a normal account, not your own. If invites are not being deleted, check that the Security module is on and that the bot can manage messages in that channel. If a partner channel is being cleaned, add it with allow_channel.
What next
Pair link rules with anti-spam for message floods and anti-nuke for staff abuse. The details are in the invite and self-bot filter docs and the protection docs. If a member account was taken over, share what to do when a Discord account is hacked. Add Noxyr to turn the filters on.
Common questions
How do I stop people posting Discord invite links?
Run /security antiinvite enabled:True. Invites to other servers are deleted, while admins, allowed roles and allowed channels are never filtered. Add timeout_minutes to also time the member out.
Can I allow invites in one channel only?
Yes. Use allow_channel for a channel or category, up to 25. You can also allow roles, up to 25, and invites to your own server are allowed by default.
How does Noxyr stop self-bot scam pictures?
Run /security selfbot enabled:True. When a member posts the same picture and link 3 times within 120 seconds by default, every copy is deleted and they are timed out for 60 minutes.
Does the anti-link bot also catch fake Nitro links?
Yes. The scam link rule deletes links that pretend to be Discord, Steam or Nitro, including lookalike letters and fake gift pages, plus any domains you block.
Is the Noxyr anti-link bot free?
Yes. All security modules are free.