How to block distracting websites in Edge — the manual ways first
I do not need a lecture on self-control. I need the distracting site to simply not open at 10 a.m. on a workday — and to open fine at 8 p.m. Before I built anything, I wanted to know what the operating system and the browser already do for free. If the built-in way is good enough, there is nothing to build.
Here are the manual ways, tested on current Edge on Windows. No extension needed.
1. Edit the hosts file
Map the distracting domain to your own machine and the browser has nowhere to go.
- Windows: open Notepad as administrator, open
C:\Windows\System32\drivers\etc\hosts, add a line like127.0.0.1 www.youtube.com, save, restart the browser. - macOS / Linux: the same file lives at
/etc/hosts.
It works, and it is free. It is also all-or-nothing: the site is blocked at every hour of every day until you edit the file again as administrator. There is no "block 9-to-6 on weekdays", no temporary unblock with friction, and no record of how often you tried. The friction that makes it work is the same friction that makes you stop using it — editing a system file every time your schedule changes gets old fast.
2. Microsoft Family Safety
Windows has a real content filter, but it is built for parents, not for yourself. You set up a family group, add a child account, and turn on web filtering for that account. It blocks categories and specific sites, and it can enforce screen-time limits.
If you are trying to block your own browsing, this is the wrong shape: it governs a different account than the one you work in, and setting it up for yourself means maintaining a second identity just to get a blocklist. It is the right tool for a household with kids; it is not a focus tool.
3. Router or DNS-level blocking
Block the domain at the router or with a filtered DNS service, and every device on the network loses access.
The cost is scope: it blocks for everyone in the house, on every device, at all hours. There is no per-device schedule and no "just this browser, just this profile". If anyone else in the house needs the same site, you are negotiating a network change instead of toggling a rule. It also does nothing when you take the laptop to a café.
4. Do Not Disturb and Focus sessions
Windows Focus sessions and Edge's quiet notifications will silence pings while you work. They do not stop a site from loading. The tab is still one click away, and the click is the whole problem.
5. Willpower scaffolding: a clean profile, no bookmarks
A separate Edge profile with no bookmarks and no saved logins adds a little friction to every visit. It is honest friction, and it costs nothing. It also evaporates the first time you type the URL from memory — which, for the sites that distract you, you will.
What the manual ways do not give you
After walking through all five, the gap is specific, not vague:
- Schedules. Block a site 9-to-6 on weekdays and leave it alone in the evening — without editing a system file twice a day.
- Friction on purpose. A password lock on changing the rules, so "just this once" costs a deliberate step instead of a reflex.
- A record. How many times you tried, and when — so you can see whether the block is actually working.
- Local and account-free. No sign-up, no sync server, no data leaving the machine. The hosts file already sets that bar; a tool that asks for an account to block a website is a step backwards.
That gap is what I am building FocusBlock for: a local-first website blocker for Edge. Domain and keyword rules, schedules, a focus timer, and usage stats. Free tier covers up to 20 rules; the paid tier (¥19.90 one-time, activation code delivered by message after purchase) unlocks unlimited rules, schedules, password lock, the focus timer, and stats. I tested it against a real browser: 141 automated tests passing for v0.1.5, plus real-browser runs covering domain rules with ports, keyword rules, the purchase button target, and the options page.
Honest status
FocusBlock v0.1.5 is live on Microsoft Edge Add-ons now — it is installable today. The Firefox build exists but is not listed yet (the listing is waiting on a verification step on my side). The Pro activation code is sold on Afdian for ¥19.90 one-time.
Edge Add-ons: https://microsoftedge.microsoft.com/addons/detail/kdpeddhiegpfadpjiaieoaeiloebgdhp
Privacy page: https://alapha888.github.io/focus-block-privacy/
For reference, my other extensions in the same local-first line are ConvoExport (ChatGPT/Claude conversation export), YouTube Transcript Export, SessionSnap (browser session snapshots), MD Publisher (Markdown to WeChat/Zhihu/Juejin), and Highlighter (quote-anchored web highlights) — all on Edge Add-ons.
Bottom line
If all you need is "this site never opens, ever", edit the hosts file in step 1 and stop reading. If you need "this site does not open during work hours, opens in the evening, and changing that costs a deliberate step", the manual ways will keep disappointing you — that is the honest reason this tool exists.