How to block Discord on Windows
Updated December 2026
To block Discord on Windows 10 or Windows 11, choose between three proven methods: editing C:\Windows\System32\drivers\etc\hosts as Administrator followed by ipconfig /flushdns (free across Chrome, Edge, and Firefox), configuring Microsoft Family Safety for a child's Windows login (great for blocking both sites and Windows desktop apps), or installing Focus AI inside Chrome, Microsoft Edge, Brave, or Firefox. Adding discord.com, www.discord.com, discordapp.com, ptb.discord.com, canary.discord.com to the Windows hosts file stops Discord system-wide without extra software, though anyone with Windows Administrator rights can delete those lines in seconds. For adults, remote workers, and parents on Windows, Focus AI adds Always-On Site Blocker (up to 3 sites free, unlimited Pro), Quit Wall strict mode, and Friend/Parent Passcode Lock.
1. Block Discord on Windows 10 & 11 via the hosts file (free)
- Open the Windows Start Menu, search for Notepad, right-click it, and click Run as administrator.
- Click File > Open, navigate to C:\Windows\System32\drivers\etc\, change the bottom-right dropdown from Text Documents (*.txt) to All Files (*.*), and open hosts.
- Paste the exact 127.0.0.1 and ::1 lines for Discord shown below at the bottom of the file, then press Ctrl + S to save.
- Open Command Prompt and run ipconfig /flushdns, then close and reopen Chrome, Edge, or Firefox.
2. Block Discord on Windows for kids with Microsoft Family Safety
- Ensure your child signs into Windows with a Standard (non-Administrator) Microsoft child account.
- Sign in at family.microsoft.com from your parent account, select the child, and open Content filters > Web and search.
- Enable web filtering, add discord.com under Blocked sites, and block unmonitored browsers or desktop game launchers under Apps and games.
3. Block Discord on Windows Chrome, Edge, Brave, or Firefox with Focus AI
- Install Focus AI from the Chrome Web Store (works natively in both Chrome and Microsoft Edge) or Mozilla Add-ons (Firefox).
- Enable Allow in Incognito (Chrome) or Allow in InPrivate (Edge) inside your browser's extensions page.
- Add discord.com to Always-On Site Blocker (free for up to 3 sites) or run context-aware AI focus sessions, with optional Friend/Parent Passcode Lock on Pro.
Exact Discord domains & subdomains (hosts file block)
Discord still accepts traffic on legacy discordapp.com as well as ptb.discord.com and canary.discord.com test builds. Hosts-file blocking stops the desktop Electron app from connecting too once DNS flushes, though it kills all servers at once.
127.0.0.1 discord.com ::1 discord.com 127.0.0.1 www.discord.com ::1 www.discord.com 127.0.0.1 discordapp.com ::1 discordapp.com 127.0.0.1 ptb.discord.com ::1 ptb.discord.com 127.0.0.1 canary.discord.com ::1 canary.discord.comNeed multiple sites? Open the free Hosts File Website Blocker Generator →
Try Focus AI live against Discord
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
Chat tabs fragment deep work during "Building Next.js app". Check messages after the timer ends.
What breaks Discord blocks on Windows
On Windows 10 & 11, watch two common bypasses: Microsoft Family Safety's native web filter only filters Microsoft Edge unless you also block Chrome and Firefox under Family Safety App Limits, and Chrome/Edge Secure DNS (DoH) can ignore your Windows hosts file until Secure DNS is turned off.
Windows-specific note: blocking discord.com in Chrome does not close the standalone Discord Windows desktop client. Quit or uninstall the desktop client during deep work, or add discord.com and gateway domains to your Windows hosts file.
Discord feels harmless because it is real people instead of an algorithm, yet dozens of active servers generate non-stop unread badges, voice channels, and side conversations that shred deep work into five-minute fragments.
Block Discord on Windows and keep it blocked
Start free with 3 AI focus sessions and up to 3 always-blocked sites. Upgrade anytime for Friend/Parent Passcode Lock and unlimited protection.
Add Focus AI to ChromeFrequently asked questions
Why does Windows block me from saving the hosts file for Discord?
You must open Notepad via Right-Click > Run as administrator. If saving still fails, check whether your antivirus software temporarily locks C:\Windows\System32\drivers\etc\hosts against edits.
Does Microsoft Family Safety block Discord in Chrome on Windows?
No. Microsoft Family Safety web filtering enforces natively in Microsoft Edge only. Either restrict Chrome under Family Safety App limits, or install Focus AI with Parent Passcode Lock inside Chrome.
Does Focus AI work on Microsoft Edge on Windows 11?
Yes. Microsoft Edge supports Chrome Web Store extensions natively, so Focus AI runs on Edge with full Always-On Site Blocker, AI sessions, and Passcode Lock support.