How to Block Websites on Windows: 4 Methods and Checks
You can block websites on Windows with a browser extension, Microsoft Family Safety, the hosts file, or DNS filtering. Use an extension for your own browser rules, Family Safety for a supported family account in Edge, or a system or network method when you need wider coverage.
This guide starts with Windows 11. The hosts-file location also applies to Windows 10. A browser block does not automatically block desktop apps, other profiles, or phones. Choose the coverage you need before making a rule.
Key Takeaways
- A browser extension is the simplest route for personal focus.
- Family Safety web filtering uses supported browsers, currently Edge.
- The hosts file maps hostnames; it does not block individual URL paths.
- Check each browser, profile, and network you use.
Which method should you choose on Windows?
| Method | Useful for | Main limit |
|---|---|---|
| Browser extension | Personal focus, schedules, daily budgets | Only the enabled browser profile |
| Microsoft Family Safety | A family member's supported browsing | Web filtering depends on Edge and account setup |
| Hosts file | A small, fixed list of hostnames | No paths, categories, or time budgets |
| Filtering DNS | Domain or category rules on a device or network | Coverage depends on the resolver in use |
For a work or school PC, ask the administrator to apply the relevant policy. Changing local settings can be unavailable on a managed device. For your own PC, start with a reversible rule and test it before adding more domains.
1. How do you block websites in a Windows browser?
Use a blocker in the browser where you open the distracting site. Bouncer supports desktop Chrome, Edge, Brave, Vivaldi, and Opera.
- Open the Bouncer store listing in the supported browser.
- Review the permissions, then install it.
- Open Bouncer, select Open Full Dashboard, then open Blocklist.
- Enter a domain, such as
reddit.com, and select Block. - Try the home page and a link to a page inside the site in fresh tabs.
The free plan covers up to five sites. Pro is $25 once and adds unlimited blocking, schedules, daily allowances, categories, and other tools. If you use Edge, the Edge guide covers extension setup and InPrivate checks.
Repeat setup in each profile you use. A rule in a work profile does not show that the same site is blocked in a personal profile. Also check private browsing separately. Google's extension help explains the Chrome control for incognito access.
2. How do you block websites with Microsoft Family Safety?
Use Family Safety when you manage a family member's account and supported browsing. Microsoft's web filtering instructions state that the supported browser is currently Edge. Do not assume the same filter runs inside Chrome.
- Open your Microsoft family account and select the family member.
- Open the member's overview and select Edge.
- Enable the filter for inappropriate websites and searches.
- Add the site under Blocked Sites.
- Check access in Edge while the intended family account is signed in.
The filter can block unsupported browsers; Microsoft's guide explains the related app controls. Review this before you rely on the setting. An allowed-sites-only option has a much wider effect than adding one blocked site.
3. Can you block a website with the Windows hosts file?
The hosts file maps a hostname to an IP address. An entry that maps a website hostname to 127.0.0.1 points it at your own computer. This can stop normal connections to that hostname. It is a manual method for a small list, with no built-in schedule.
Use this method only on a PC you administer. Make a backup first. Do not remove existing entries. The file is at:
C:\Windows\System32\drivers\etc\hosts
- Open Notepad as administrator.
- Open the hosts file. Select the option to show all file types if needed.
- Add separate lines for the exact hostnames you want to restrict.
- Save the file as
hosts, with no.txtextension. - Close and reopen the browser, then test the address.
For example, these entries map the root and www hostnames of a placeholder domain:
127.0.0.1 example.com
127.0.0.1 www.example.com
Replace the example with the domain you intend to block. These entries do not act as a wildcard for every subdomain. They also cannot block only example.com/feed. To undo the rule, remove only the lines you added and save again.
If the browser keeps using a previous address, Windows provides the ipconfig command; ipconfig /flushdns clears the Windows DNS cache. A proxy, browser cache, or separate hostname can still change the result. Test the actual browser rather than treating a file entry as proof.
4. When does DNS filtering make sense?
Use filtering DNS when you want domain or category rules outside a single extension. Depending on the provider and setup, a rule can apply to the PC or to devices that use a router.
Follow the provider's instructions for both IPv4 and IPv6 where applicable. Check whether the browser uses its own secure DNS provider. A device on mobile data, a different Wi-Fi network, or a VPN can use a different resolver.
DNS works with domains. Use a browser rule if you need a URL path or a daily website budget. For adult-content categories, see the adult website blocking guide.
How do you check that a Windows website block works?
- Open the blocked domain in a fresh normal tab.
- Open a direct link to a page inside that domain.
- Try the private window, if you use it.
- Try a second browser and profile that should be covered.
- Open a work site that should remain available.
- If the rule has a schedule or allowance, test that condition too.
If a site still opens, first identify the route that escaped the rule. Add the missing domain or select a control with the required coverage. Do not keep adding broad rules without checking which one is needed.
Frequently Asked Questions
Can Windows Firewall block a website by its URL?
Windows Firewall rules are not a simple URL blocklist. Website IP addresses can change and can be shared with other services. Use a browser, DNS, family, or managed policy designed for the required website rule.
Can I block websites on Windows without an extension?
Yes. Family Safety, hosts-file entries, and filtering DNS are options. Each has different account, hostname, and network limits. Check the method in the browser you use.
Does a Windows website block cover my phone?
A rule on one Windows PC does not automatically cover a phone. A router filter can affect devices that use its configured DNS, but mobile data and other networks need separate checks.
Related Guides
- How to Block Websites on Mac: Safari, Chrome, and More
- How to Block Websites on Edge: Desktop and InPrivate
- How to Limit Time on Websites in Chrome: Daily Budgets
Start with one browser rule. Bouncer blocks up to five sites for free. Choose Pro for schedules, daily allowances, and unlimited blocking.
Get Bouncer Free