How to block social media on Microsoft Edge
Blocking one social site just moves you to the next one. To cut social media on your computer, block them all at once: Instagram, TikTok, X, Facebook, Reddit and YouTube's feed.
Here are four ways, from free settings to a block that holds. Each one works in Chrome too.
1. Block social media in the hosts file
Your computer checks its hosts file before it looks a site up, so an address pointed at 0.0.0.0 can't load in any browser. It's free and works in Chrome, Edge and everything else.
- Windows: open Notepad as administrator, then open
C:\Windows\System32\drivers\etc\hosts. - Mac: in Terminal, run
sudo nano /etc/hosts.
Add these lines at the end and save:
0.0.0.0 instagram.com 0.0.0.0 www.instagram.com 0.0.0.0 tiktok.com 0.0.0.0 www.tiktok.com 0.0.0.0 x.com 0.0.0.0 twitter.com 0.0.0.0 facebook.com 0.0.0.0 www.facebook.com 0.0.0.0 reddit.com 0.0.0.0 www.reddit.com
Then restart Edge. On a Mac, also run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. The hosts file has no wildcards, so each address needs its own line.
The catch: undoing it takes thirty seconds, and you know exactly where the file is.
2. Block social media with Edge's own policy
Edge has no block button for your own account, but it follows the same URLBlocklist policy that schools and companies use for Chrome, under its own key.
You can set it on your own computer. On Windows, save this as block.reg, double-click it, and restart Edge:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\URLBlocklist] "1"="instagram.com" "2"="tiktok.com" "3"="x.com" "4"="twitter.com" "5"="facebook.com" "6"="reddit.com" "7"="snapchat.com" "8"="threads.net" "9"="bsky.app"
A domain in this list covers its subdomains too, and you can add a path to block only part of a site. Open edge://policy to check it took.
For Chrome, use Google\Chrome in place of Microsoft\Edge. To undo it, delete the URLBlocklist key in the Registry Editor.
3. Make social media less sticky
Notice where you go when one is blocked
For a week, note what you open when the first site is blocked. That's the next site to add.
Sign out everywhere on your work computer
Signed-out feeds are generic and pull far less than your own.
Leave some, on purpose
Cutting social media to zero tends to fail. A few planned minutes a day hold better than none.
4. Make social media something you earn
Blocks you can lift in thirty seconds get lifted. 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. All your sealed sites share one bank, so the minutes you earn go to whichever feed you pick. Onus is in the Edge Add-ons store, so it installs in Edge like any other extension.
When the time runs out, the seal comes back. Five emergency minutes a day never touch the bank, and an exit code you set opens everything until midnight if you truly need out.
Questions
Does Microsoft Edge have a built-in way to block social media?
Not for your own account. Microsoft Family Safety can block sites in Edge on a child's account, Edge follows the URLBlocklist policy you can set on your own computer, and the hosts file blocks sites in every browser.
How much social media is too much?
There's no single number. In one study, students who cut Facebook, Instagram and Snapchat to 10 minutes each a day felt less lonely and depressed after three weeks.
Does InPrivate get around a social media block?
Not with the hosts file or Edge's policy, which cover InPrivate too. Extensions only run in InPrivate if you allow them on the extension's details page.
See also: The research behind Onus.
Use Chrome as well? See how to block social media on Chrome.
Block another site on Edge: YouTube · Reddit · TikTok · Instagram · X (Twitter) · Facebook · Netflix · Twitch · Discord · Pinterest · LinkedIn · Amazon · news sites · Chess.com
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 · Block a website on Edge · 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