HOME  /  BLOG  /  DEVICE GUIDES

Block websites on Windows 11. Four methods, ranked.

Defenras UPDATED AUGUST 2026 7 MIN READ HOW WE WRITE THIS

Windows gives you more ways to block a website than any other consumer OS, and most of them are trivially reversible by anyone with an admin account. Here's the ranking that matters.

Before anything else: give your child a standard account

This is the step that determines whether everything else works. If your child's Windows account is an administrator, they can undo every method below.

  1. Settings → Accounts → Other users.
  2. Select your child's account → Change account type.
  3. Set to Standard User.
  4. Confirm your own account has a password that isn't blank.

Method 1: Microsoft Family Safety (built in, free)

  1. Go to family.microsoft.com and add your child's Microsoft account.
  2. Open their profile → Content filters → Web and search.
  3. Turn on Filter inappropriate websites.
  4. Add specific sites under Blocked sites, or use Only use allowed websites.

The catch: Microsoft's web filtering only works in Microsoft Edge. Turning it on automatically blocks other browsers from launching — which sounds thorough until your child installs a portable browser that runs from a folder without installing.

Method 2: The hosts file

Free, immediate, and easy to reverse.

  1. Open Notepad as administrator.
  2. Open C:\Windows\System32\drivers\etc\hosts.
  3. Add a line per site: 127.0.0.1 example.com and 127.0.0.1 www.example.com.
  4. Save and flush the cache: ipconfig /flushdns in Command Prompt.

Realistically: this is a speed bump. It needs a line per subdomain, doesn't handle sites reachable by IP, and any admin user can delete the lines. It also doesn't scale — a real adult-content blocklist is millions of domains.

Method 3: Router-level DNS

Covers every device in the house including the PC, and can't be changed from the PC itself. Its limits are the usual ones: home network only, and a laptop that leaves the house leaves the filter behind.

One blocklist across the whole family

Defenras covers the Windows PC, both phones, and the tablet from a single parent dashboard.

Get Defenras free →

Method 4: DNS filtering on the device

The version that travels with a laptop and covers every browser.

On Windows, Defenras runs as a browser extension for Chrome, Edge, and Firefox, backed by a system-level DNS configuration. Practically:

Closing the Windows-specific gaps

RANKED, SHORTEST VERSION

1. Standard user account — do this first, it makes everything else stick. 2. DNS filtering on the device — the layer that actually holds. 3. Family Safety for time limits and reporting. 4. Hosts file — fine for blocking two or three specific sites, useless as a strategy.

Frequently asked questions

Does Microsoft Family Safety block Chrome?

It blocks Chrome from running rather than filtering inside it — its web filtering only works in Edge. Kids commonly get around this with a portable browser that doesn't need installing.

Can I block a site only at certain hours on Windows?

Not with the hosts file. Family Safety does app and device time limits, and Defenras schedules apply per-category or per-site with a parent PIN.

Will blocking sites break Windows Update or the Store?

Not if you're using a maintained blocklist. Hand-editing the hosts file can cause this — blocking a Microsoft CDN domain by accident breaks updates in ways that are hard to diagnose.

My child has a gaming PC they built themselves. Is any of this realistic?

Be honest with yourself: a teenager who can build a PC can get around software controls on it. At that point router-level filtering plus an actual conversation about expectations does more than an arms race you'll lose.

Defenras blocks all of this — without collecting your child's data.

One app, every device, every browser. Adult content, gambling, vaping, scams, malware, social media — all blocked. PIN-locked. Free version available, no credit card.