How to block websites on Windows 10 & 11
Updated December 2026
To block websites on Windows 10 and Windows 11, choose from four working methods: Microsoft Family Safety (best native parental control for child accounts), editing C:\Windows\System32\drivers\etc\hosts as Administrator (free system-wide domain block across browsers), Chrome/Edge Registry policies (URLBlocklist), or installing a strict extension like Focus AI in Chrome, Edge, Brave, or Firefox. Microsoft Family Safety blocks websites cleanly in Microsoft Edge and lets parents block unmonitored browsers like Firefox or desktop apps like Roblox and Steam under a child login. Editing the Windows hosts file works across every browser once you run ipconfig /flushdns in Command Prompt, though anyone with Windows Administrator privileges can remove lines in 30 seconds. For adults, remote workers, and founders who want strict blocking without breaking YouTube tutorials or work research on Windows, Focus AI adds context-aware AI sessions, Always-On Site Blocker (3 sites free, unlimited Pro), and Friend/Parent Passcode Lock.
Every working method on Windows 10 & 11, compared
| Method | Scope | Cost | Hard to undo? | Best for |
|---|---|---|---|---|
| Focus AI extension | Chrome, Edge, Brave, Firefox | Free (3 sessions + 3 sites) / Pro | High (Quit Wall + Passcode Lock) | Adults, remote workers, keeping work tutorials |
| Windows hosts file | All Windows browsers | Free | Low for admins; high for standard accounts | Permanent system-wide domain blocks |
| Microsoft Family Safety | Child account (Edge + Windows apps) | Free | High (parent Microsoft account required) | Parents blocking Roblox, gaming & sites |
| Windows Registry URLBlocklist | Chrome or Edge on all profiles | Free (admin required) | Medium (requires regedit) | Shared or family Windows PCs |
Method 1: Edit the Windows 10 / 11 hosts file (free, no software)
- Generate accurate 127.0.0.1 and ::1 rules with our free Hosts File Website Blocker Generator.
- Open Start, search Notepad, right-click Notepad, and select Run as administrator.
- Click File > Open, go to C:\Windows\System32\drivers\etc\, switch the file filter from Text Documents (*.txt) to All Files (*.*), and open hosts.
- Paste the generated blocklist at the bottom, press Ctrl+S to save, then open Command Prompt and run ipconfig /flushdns before restarting your browser.
Method 2: Block websites for a child with Microsoft Family Safety
- Create a Microsoft child account in Windows Settings > Accounts > Family and ensure the child's Windows login is a Standard user (not Administrator).
- Sign in at family.microsoft.com from your parent account, select the child, and open Content filters > Web and search.
- Turn on Filter inappropriate websites and searches, then add specific domains under Blocked sites.
- Under Apps and games, block alternative unmonitored browsers or standalone launchers like Roblox or Steam during homework hours.
Method 3: Install Focus AI on Chrome, Edge, or Firefox on Windows
- Install Focus AI from the Chrome Web Store (works on Chrome, Microsoft Edge, and Brave) or Mozilla Add-ons (Firefox).
- Turn on Allow in Incognito (or Allow in InPrivate on Edge) in your browser's extensions settings.
- Block up to 3 always-blocked sites free, run 3 free AI focus sessions, or unlock unlimited blocking and Friend/Parent Passcode Lock on Pro.
127.0.0.1 + ::1 blocklist with our free Hosts File Website Blocker Generator →Loopholes to close on Windows 10 & 11
On Windows, two classic loopholes ruin manual blocks: Microsoft Family Safety web filtering only filters Microsoft Edge unless you also block Chrome/Firefox in Family Safety App limits, and Windows antivirus suites (like Windows Defender or McAfee) occasionally flag or lock modifications to C:\Windows\System32\drivers\etc\hosts. Also check Secure DNS in Chrome/Edge if hosts entries seem ignored.
Try Focus AI live before you install
Pick or type a real work task, then test any URL to see what stays open and what gets blocked.
This YouTube video matches your task "Building Next.js app", so Focus AI lets it play while keeping Shorts blocked.
Block distractions on Windows without breaking your work
Context-aware AI sessions, Always-On Site Blocker (3 sites free, unlimited Pro), and Friend/Parent Passcode Lock.
Add Focus AI to ChromeFrequently asked questions
Why did Windows say 'You don't have permission' when saving the hosts file?
You must launch Notepad via Right-Click > Run as administrator. If Notepad still cannot save, check whether Windows Security or third-party antivirus software is protecting the hosts file against edits.
Does Microsoft Family Safety block websites inside Google Chrome on Windows?
No, Microsoft Family Safety's native web filter only monitors Microsoft Edge. To enforce Family Safety web blocks, parents also block Chrome and Firefox under Family Safety's App and game limits, or install Focus AI with Parent Passcode Lock inside Chrome.
Can Focus AI block Windows desktop apps like Steam or Valorant?
No. Focus AI protects browsers (Chrome, Edge, Brave, Firefox). To lock native Windows executables, pair Focus AI with Microsoft Family Safety or Cold Turkey Blocker.