How to block websites on Windows 10 & 11

Sameed Ahmad
By Sameed Ahmad, who builds Focus AI (so read the Focus AI parts with that in mind).
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

MethodScopeCostHard to undo?Best for
Focus AI extensionChrome, Edge, Brave, FirefoxFree (3 sessions + 3 sites) / ProHigh (Quit Wall + Passcode Lock)Adults, remote workers, keeping work tutorials
Windows hosts fileAll Windows browsersFreeLow for admins; high for standard accountsPermanent system-wide domain blocks
Microsoft Family SafetyChild account (Edge + Windows apps)FreeHigh (parent Microsoft account required)Parents blocking Roblox, gaming & sites
Windows Registry URLBlocklistChrome or Edge on all profilesFree (admin required)Medium (requires regedit)Shared or family Windows PCs

Method 1: Edit the Windows 10 / 11 hosts file (free, no software)

  1. Generate accurate 127.0.0.1 and ::1 rules with our free Hosts File Website Blocker Generator.
  2. Open Start, search Notepad, right-click Notepad, and select Run as administrator.
  3. Click File > Open, go to C:\Windows\System32\drivers\etc\, switch the file filter from Text Documents (*.txt) to All Files (*.*), and open hosts.
  4. 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

  1. Create a Microsoft child account in Windows Settings > Accounts > Family and ensure the child's Windows login is a Standard user (not Administrator).
  2. Sign in at family.microsoft.com from your parent account, select the child, and open Content filters > Web and search.
  3. Turn on Filter inappropriate websites and searches, then add specific domains under Blocked sites.
  4. 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

  1. Install Focus AI from the Chrome Web Store (works on Chrome, Microsoft Edge, and Brave) or Mozilla Add-ons (Firefox).
  2. Turn on Allow in Incognito (or Allow in InPrivate on Edge) in your browser's extensions settings.
  3. 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.
Using the hosts file on Mac or Windows? Skip manual typing and build a clean 127.0.0.1 + ::1 blocklist with our free Hosts File Website Blocker Generator →
Common bypasses on Windows 10 & 11

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.

Interactive Demo · Zero Install

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.

youtube.com/watch?v=nextjs-app-router-guide

This YouTube video matches your task "Building Next.js app", so Focus AI lets it play while keeping Shorts blocked.

ALLOWED
Session check log for “Building Next.js app”
Simulated client-side demo. In Chrome, Focus AI runs live on every tab during active sessions.Add Focus AI to Chrome
Privacy & pricing: Focus AI checks only the URL and brief page snippet during active sessions. Banking, login, email, and form inputs are skipped. Nothing is stored as browsing history or sold. Free for 3 AI focus sessions and up to 3 always-blocked sites, then $4.99/week, $14.99/month, or $79/year (save 56%).
FUTURE YOU IS WATCHINGLOCK IN

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 Chrome
Free for 3 AI focus sessions + 3 always-blocked sites · 30-second setup · No account needed

Frequently 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.

Block websites on other devices & browsers