If you run a Discord server, your vanity URL (like discord.gg/yourname) is your identity. Losing it to a sniper or a server nuker can destroy years of community growth in seconds.
Many server owners believe their anti-nuke bots will protect their vanity URL if something goes wrong. Unfortunately, that is not how Discord works.
Here is why standard security bots cannot save your vanity link, and how you can guard it using a free, open-source tool.
Why normal anti-nuke bots cannot protect your vanity
When someone nukes a server, they often change or remove the server custom invite link. The moment your vanity URL is released, automated "sniper" bots on the internet try to claim it immediately.
Most server owners expect their security bot to restore the vanity, but Discord has a strict rule: Bots are blocked from changing server vanity URLs.
This creates a serious gap in server security:
- Your anti-nuke bot can ban the attacker, but it cannot reset the vanity URL.
- Snipers claim dropped vanity links in less than a second.
- By the time you notice and try to type the vanity back in manually, it is already gone.
Because bot tokens cannot touch vanity settings, protecting a vanity URL requires an automated tool that uses discord user account to reclaim the link before snipers can take it.
Introducing Discord Vanity Protector (DVP)
To solve this, I created Discord Vanity Protector, an open-source vanity guard that runs in the background to keep your custom link safe.
Here is what it does in simple terms:
- Watches your link: It monitors your server 24/7 for any unexpected changes to your vanity URL.
- Detects attacks instantly: If someone removes or alters your vanity without permission, the tool catches the event in real time.
- Reclaims your URL: It immediately sends a request using your configured credentials to grab your vanity back before outside snipers even realize it was dropped.
Built for speed and easy self-hosting
When fighting against automated snipers, speed is everything.
I built the core engine in Rust so it reacts with virtually zero delay and uses almost no computer memory, meaning you can easily run it 24/7 on a cheap VPS or your personal computer.
If you prefer other languages, the repository also includes ready-to-run versions in Node.js, Bun, and Python.
It is 100% free and open source. You run it yourself, so your account tokens and server data stay entirely in your own hands.
How to get started
You do NOT need to be an experienced programmer to set this up. The github repository includes simple, step-by-step instructions to get the guard running in a few minutes:
faiz4sure
/
discord-vanity-protector
High-performance Discord vanity URL protector in Rust with sub-millisecond recovery, automated password MFA verification, Windows Electron client impersonation, and multi-language support (Python, Bun, Node.js).
Discord Vanity Protector (DVP)
A high-performance Discord vanity URL protector written in Rust. DVP continuously monitors your Discord server in real-time, instantly detects unauthorized vanity URL changes, automatically restores your vanity URL using account password verification, and punishes attackers with zero delay.
DVP appears as an official Discord Windows Desktop client with full TLS emulation, preventing bot detection.
Features
- Instant Vanity Reversion: Restores your vanity URL in milliseconds when an unauthorized change occurs.
- Automated 2FA / Password Verification: Uses your account password to complete verification on-demand and caches the security token in memory for fast recovery.
- Concurrent Attacker Punishment: Bans or kicks the attacker at the same instant the vanity is restored.
- Zero-Setup Run (No Rust Required): You can run DVP directly with Python, Node.js, or Bun — the runner automatically downloads the pre-built engine for your operating system.
- Desktop Client Impersonation: Uses official Discord…
If you manage a community or want to make sure your custom invite link stays secure, give the repository a star and set it up for your server. If you run into any issues, feel free to open an issue on github or join support server!
Frequently asked questions
Is this safe to use?
From a privacy perspective, yes. The project is 100% open source and self-hosted, so your tokens and server details never touch any third-party servers.
However, keep in mind that automating user accounts goes against Discord's Terms of Service (self-botting rules). Ironically, malicious snipers and nukers use automated user accounts to steal your links, so this tool essentially uses their own tactics to defend your server.
Why can't a normal Discord bot do this?
Discord's API strictly prohibits bot accounts from modifying vanity URLs. Only user accounts with server management permissions can change them, which is why protecting a vanity requires automating a user account instead of using a standard bot token.
What credentials are required to run it?
You will need a user account token (with permissions to manage the server) and the account password. Discord requires password verification during the MFA flow to modify the vanity code, so the password is used to complete that security check automatically.
Do I need coding experience to use it?
No. You do not need to write or understand any code. You simply download the tool, fill in your credentials and server details in a configuration file, and run it.
What kind of hosting or VPS is needed?
You do not need an expensive server. Any cheap VPS or local machine works since the tool uses negligible memory. For best results against fast snipers, pick a server location with low latency and high internet speed close to Discord's primary infrastructure (such as US-East).
Top comments (0)