Guide
How to block a website on Microsoft Edge
Edge doesn't have a block button for your own account, but the same four ways that work in Chrome work in Edge, three of them free. Pick a site for the exact steps, or read on.
- Block YouTube on Edge
- Block Reddit on Edge
- Block TikTok on Edge
- Block Instagram on Edge
- Block X (Twitter) on Edge
- Block Facebook on Edge
- Block Netflix on Edge
- Block Twitch on Edge
- Block Discord on Edge
- Block Pinterest on Edge
- Block LinkedIn on Edge
- Block Amazon on Edge
- Block news sites on Edge
- Block Chess.com on Edge
- Block social media on Edge
1. The hosts file: free, every browser
Add a line like 0.0.0.0 example.com to your computer's hosts file (on Windows, C:\Windows\System32\drivers\etc\hosts, opened in Notepad as administrator) and that address won't load in Edge or any other browser. Each address needs its own line.
2. Edge's URLBlocklist policy: free, Edge only
Edge reads the same kind of policy companies use, from HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\URLBlocklist. A domain covers its subdomains, and a path blocks only part of a site. Each site guide has a ready-made file. Check it took at edge://policy.
3. Microsoft Family Safety: for a child's account
With a child's Microsoft account in your family group, Family Safety's content filters can block sites in Edge. It isn't for blocking your own sites.
4. A blocker extension from Edge Add-ons
Extensions are the easiest to set up and the easiest to switch off. Onus is in the Edge Add-ons store and works differently from most: Onus seals the site until you've worked for it: every 25 minutes on your work sites buys 10 minutes back, the bank holds up to 2 hours, and it resets at midnight.
Blocking a site on Chrome instead? See how to block a website on Chrome, with guides for 15 sites.
Questions
Does Microsoft Edge have a website blocker?
Not for your own account. Microsoft Family Safety can block sites in Edge on a child's account. For yourself, use the hosts file, Edge's URLBlocklist policy, or an extension from the Edge Add-ons store.
Can I block a website on Edge without an extension?
Yes. The hosts file blocks a site in every browser, and Edge's URLBlocklist policy blocks it in Edge. Both are free and need no extension.
Do Chrome extensions work in Edge?
Most do. Edge can install extensions from the Chrome Web Store once you allow extensions from other stores, and many blockers, Onus included, are in the Edge Add-ons store too.
Does InPrivate get around a block on Edge?
Not the hosts file or the URLBlocklist policy, which cover InPrivate windows too. Extensions only run in InPrivate if you allow them in the extension's details.
More: YouTube blocker · Reddit blocker · Blocker for studying · Onus vs Cold Turkey · Onus vs StayFocusd · Onus vs LeechBlock · How to stop watching YouTube · How to stop doomscrolling · Onus vs Freedom · Onus vs BlockSite · Opal alternative for computers · How to block YouTube Shorts · Blocker for ADHD · Block sites during work hours · Blocker for employees · Stop procrastinating · How to block TikTok · Block Instagram on Android · Push-up app blocker · Block YouTube on Android · Block Snapchat on Android · App blocker for Android · Use your phone less · Screen time calculator · Block a website on Chrome · Best website blockers for Chrome · SelfControl for Windows · Block websites on a Mac · Block websites on a Chromebook · The research behind Onus · Cold Turkey vs Freedom · LeechBlock vs StayFocusd · BlockSite vs StayFocusd · Freedom vs Opal · Cold Turkey vs LeechBlock · Press kit · Block websites on Windows · Block apps on Windows · Block games on a PC · Block websites on Android · Limit time on websites · Blocker with a timer · Pomodoro website blocker · Block websites at night · Stop binge-watching · Quit Reddit · All guides