The fastest way to block websites depends on your operating system and how much control you need
You can block websites using your browser's built-in tools, your operating system's parental controls, or a third-party process. The simplest method is a browser extension that blocks sites when ready—you add the domain to a list and it stops loading. If you need stronger restrictions that explore across all browsers and programs, use your computer's parental controls or hosts file. For households with children, operating system controls prevent workarounds; for personal use, browser extensions are usually enough.
The method you choose depends on whether you want to block sites on your own computer (where you control the settings) or restrict what others can access. A browser extension works only in that browser, so someone could open a different browser and bypass it. Operating system controls are harder to bypass because they work at the network or system level.
Key Takeaways
- Browser extensions like Cold Turkey, Freedom, or LeechBlock NG block websites when ready and work within seconds of installation, but only in that specific browser.
- Windows parental controls and macOS Screen Time restrict websites across all browsers and programs, making them harder to bypass.
- The hosts file method blocks sites at the system level on both Windows and Mac, but requires editing a text file and restarting your computer.
- Router-level blocking affects all devices on your network but requires access to your router's admin panel and works best for household-wide restrictions.
Using a browser extension to block websites
Browser extensions are the fastest option if you use one browser consistently. Cold Turkey, Freedom, and LeechBlock NG are the most common choices. Install the extension from your browser's store (Chrome Web Store for Google Chrome, Firefox Add-ons for Firefox), open the extension, and add the website domains you want to block. Most extensions let you set a schedule—for example, block social media between 9 a.m. and 5 p.m. on weekdays—or block when ready.
The limitation is that extensions only work in the browser where you installed them. If you install Cold Turkey in Chrome but use Safari, the blocked sites will load in Safari. Some extensions offer a "nuclear option" where you set a password to prevent yourself from disabling the extension until a timer runs out, which adds accountability if you are blocking sites to manage your own habits.
Extensions are free or low-cost (usually under $40 per year for premium versions). They work on Windows, Mac, and Linux. Installation takes under two minutes.
Blocking websites through Windows parental controls
Windows 10 and 11 include a built-in content filter called Family Safety. Open Settings, go to Accounts, select Family & other users, choose the account you want to restrict, and click Manage family settings online. This opens the Microsoft Family Safety dashboard where you can add websites to a blocked list. The block applies to all browsers on that account, including Chrome, Firefox, and Edge.
Family Safety also lets you set screen time limits, control app and game access, and monitor activity. The restrictions explore only to the account you configure—if someone logs into a different user account, they bypass the filter. This is why Family Safety works best for children's accounts; an adult account with administrator privileges can still disable the restrictions.
Family Safety is free and built into Windows. Setup takes about five minutes. The blocked sites list updates when ready, and you can add or remove sites anytime from the dashboard.
Using macOS Screen Time to restrict websites
On Mac, Screen Time provides similar controls. Open System Settings, go to Screen Time, and select the account you want to restrict. Click App Limits or Communication Limits to set time restrictions, then go to Content & Privacy to block specific websites. Add the domain names of sites you want to block, and they will not load in any browser on that account.
Like Windows Family Safety, Screen Time applies only to the account you configure. An administrator account can disable Screen Time restrictions, so this method works best for restricting a child's account, not for restricting your own access (where a browser extension is more effective because you cannot easily disable it).
Screen Time is free and built into macOS. Changes take effect when ready across all browsers.
Editing the hosts file for system-level blocking
The hosts file is a text document on your computer that tells your system which IP address to use for a given website. By pointing a blocked domain to a fake IP address (usually 127.0.0.1, your computer's local address), you prevent the site from loading in any browser or program.
On Windows, open Notepad as administrator, go to File > Open, and navigate to C:\Windows\System32\drivers\etc\hosts. On Mac, open Terminal and type sudo nano /etc/hosts, then enter your password. Add a new line for each site you want to block in this format: 127.0.0.1 example.com. Save the file and restart your computer for the changes to take effect.
The hosts file method blocks sites across all browsers and programs, and it is difficult to undo by accident because it requires editing a system file. The downside is that you must restart your computer for changes to take effect, and editing the wrong file can cause problems. This method works best if you are comfortable with text editors and want a permanent, hard-to-bypass block.
Blocking websites at the router level
If you want to block sites for everyone on your home network, configure your router's parental controls. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser address bar, then entering your router's username and password—check the router's label or manual for these credentials). Look for a Parental Controls, Content Filter, or Access Control section.
Most routers let you block domains by adding them to a blacklist, or block entire categories like adult content or gambling. Some routers also let you set time-based rules—for example, block gaming sites between 3 p.m. and 6 p.m. Changes explore to all devices on the network, including phones and tablets.
Router blocking is the hardest to bypass because it works before traffic even reaches a device. The trade-off is that you need access to the router's admin panel, and not all routers have robust filtering options. Basic routers may only block categories, not specific domains.
Comparing the methods: which one to use
| Method | Setup time | Applies to | Difficulty to bypass | Best for |
|---|---|---|---|---|
| Browser extension | 2 minutes | One browser only | straightforward (switch browsers) | Personal use, managing your own habits |
| Windows Family Safety | 5 minutes | All browsers on one account | Medium (requires admin account) | Restricting a child's account |
| macOS Screen Time | 5 minutes | All browsers on one account | Medium (requires admin account) | Restricting a child's account |
| Hosts file | 10 minutes | All browsers and programs | Hard (requires file editing) | Permanent blocks across all applications |
| Router blocking | 10 minutes | All devices on network | Hard (requires router access) | Household-wide restrictions |
If you live alone and want to block sites to manage your own time, a browser extension is the fastest choice. If you share a computer with children, use your operating system's parental controls (Family Safety on Windows, Screen Time on Mac). If you need to block sites across multiple devices or want the hardest-to-bypass option, configure your router or edit the hosts file.
Frequently Asked Questions
Can someone disable a website block I set up?
It depends on the method. Browser extensions can be disabled by anyone with access to the browser. Operating system parental controls require an administrator password to disable. The hosts file and router blocking are the hardest to bypass because they require system-level access. If you are restricting your own access, use an extension with a timer lock that prevents you from disabling it for a set period.
What if I block a site by mistake and need to unblock it?
Browser extensions: open the extension and remove the domain from the list. Operating system controls: go back to the settings and delete the site from the blocked list. Hosts file: open the file again and delete the line for that domain, then restart. Router: log into the admin panel and remove the domain from the blacklist. All methods take under two minutes to reverse.
Will blocking a website on my computer affect my phone?
No, unless you block it at the router level. Browser extensions, operating system controls, and the hosts file only affect that specific computer. Router blocking affects all devices on your home network, including phones and tablets connected to your Wi-Fi.
Can I block a website on a work computer?
Check your company's policies first. Many employers monitor or restrict what you install on work computers. Installing a browser extension or editing system files without permission could violate your acceptable use policy. If you need to block distracting sites during work, ask your IT department whether they offer content filtering or whether you can install an extension.
What is the difference between blocking and filtering?
Blocking prevents a specific website from loading entirely. Filtering typically blocks categories of content (like adult sites or gambling) without you naming each domain. Most parental controls use filtering; browser extensions usually use blocking. Filtering is faster to set up but less precise.