The main ways to block websites

You can block websites at three different levels: on a single browser, on a single device, or across your entire home network. Browser-level blocking works only in that one program and only on that device. Device-level blocking affects all browsers on that computer or phone. Network-level blocking stops the site from loading on any device connected to your WiFi, which is the most thorough approach but requires access to your router.

The method you choose depends on what you're trying to do. If you want to block distracting sites while you work, a browser extension is fastest. If you're managing a child's device, device-level controls are more reliable. If you want to block something across your whole household, you'll need to configure your router.

Key Takeaways

  • Browser extensions like Freedom, Cold Turkey, and LeechBlock let you block sites in one program without affecting others.
  • Operating system settings on Windows, macOS, iOS, and Android let you block sites across all browsers on that device.
  • Router settings block sites for every device on your network, but require you to log into your router's admin panel.
  • Parental control apps like Google Family Link and Apple Screen Time offer scheduling and override options that simple blocking does not.

Browser extensions for blocking individual sites

Freedom and Cold Turkey are the most widely used browser blockers. Both let you create a list of sites to block, set times when blocking is active, and lock yourself out of changing the settings once a session starts. Freedom works on Chrome, Firefox, Safari, and Edge. Cold Turkey works on Windows and macOS but not in browsers — it blocks at the operating system level instead, which is harder to bypass.

LeechBlock NG is a free, open-source alternative for Chrome and Firefox. It has fewer features than Freedom or Cold Turkey but handles basic blocking, time-based rules, and password protection. StayFocusd (Chrome only) and News Feed Eradicator (Chrome and Firefox) are lighter options if you only want to block one or two specific sites.

Browser extensions are easiest to set up but also easiest to disable — you can usually turn them off in seconds if you know where to look. They also only work in that one browser. If you use Chrome for work and Firefox for personal browsing, blocking a site in Chrome does nothing in Firefox.

Blocking sites on Windows and macOS

On Windows 10 and 11, the built-in hosts file lets you block sites system-wide. You edit a text file at C:\Windows\System32\drivers\etc\hosts and add entries that redirect blocked domains to a dummy address. This blocks the site in every browser and every program, but it requires you to be comfortable editing system files. If you make a mistake, you can break your internet connection.

A safer Windows option is Windows Defender Application Guard, which isolates your browser in a sandbox and lets you block sites through Group Policy — but this is only available in Windows Pro and Enterprise editions, not Home.

On macOS, the hosts file works the same way. The file is at /etc/hosts and you edit it using Terminal. macOS also offers parental controls through System Settings > Parental Controls, where you can block specific websites across all browsers.

Blocking sites on iOS and Android

On iPhone and iPad, go to Settings > Screen Time > Content & Privacy Restrictions > Allowed Apps, then toggle off Safari. This disables the browser entirely. For finer control, use Settings > Screen Time > Content & Privacy Restrictions > Web Content and choose "Limit Adult Websites," which blocks adult content but allows everything else. You can add specific sites to a restricted list, but the interface is limited.

Google Family Link (Android) and Apple Screen Time (iOS) are more powerful. Family Link lets you set app limits, block apps entirely, and restrict web content from a parent dashboard. Screen Time does the same on Apple devices. Both require you to set a Screen Time passcode that your child cannot change.

On Android without Family Link, you can use the built-in parental controls in Google Play or install a third-party app like AppBlock or Digital Wellbeing. These apps block sites and apps during set times and require a PIN to disable.

Blocking sites at the router level

Router-level blocking stops a site from loading on any device connected to your WiFi. Log into your router's admin panel — usually at 192.168.1.1 or 192.168.0.1 in your browser address bar. Look for a section called "Parental Controls," "Access Control," "Content Filtering," or "Firewall." The exact menu name varies by router brand.

Most routers let you enter a list of domains to block. Some routers use a blacklist (you specify which sites to block), others use a whitelist (you specify which sites are allowed), and some offer both. A few routers integrate with services like OpenDNS or Cloudflare for Families, which maintain lists of blocked categories — adult content, gambling, social media — and update them automatically.

Router blocking is the hardest to bypass because it works before traffic even reaches a device. However, it requires you to know your router's admin password, and some routers have weak or outdated filtering options. If your router does not have built-in controls, you can use OpenDNS or Cloudflare by changing your DNS settings in the router.

What happens when you try to visit a blocked site

When a site is blocked at the browser or device level, you usually see a blank page or an error message from the blocking software. When a site is blocked at the router level, you see a "connection refused" error or a page from your router saying the site is blocked. Some routers show a custom message; others show nothing.

If you block a site using the hosts file, your browser will show a "connection refused" or "server not found" error. If you block it with parental controls, you may see a message saying the site is restricted.

How to unblock a site you blocked by mistake

If you blocked a site using a browser extension, open the extension's settings and remove the site from the blocklist. If you used the hosts file, open the file again and delete the line for that domain. If you used parental controls, go back to the settings and remove the site from the restricted list.

If you set a password or PIN to prevent changes, you will need that password to make any changes. If you forgot the password, you may need to reset your device or router to factory settings, which erases all your settings. Write down any passwords you set in a place you can find them later.

Frequently Asked Questions

Can someone bypass a blocked site using a VPN?

Yes, a VPN routes traffic through a different server, which can bypass router-level blocking. Browser and device-level blocking is harder to bypass because it works on the device itself. If you are trying to block sites for a child, a VPN is a real limitation — you may need to block VPN apps themselves or use a router that can detect and block VPN traffic.

Will blocking a site slow down my internet?

No. Browser and device-level blocking happens on your device and does not affect speed. Router-level blocking may add a tiny amount of latency because the router has to check every request, but the difference is not noticeable on most home networks.

Can I block a site on my work computer?

That depends on your company's policies. Many workplaces use network-level blocking or endpoint protection software that prevents employees from changing settings. If you want to block a site on your own time, ask your IT department first — they may have a process for requesting blocks, or they may prohibit it.

What is the difference between blocking and filtering?

Blocking stops a specific site from loading. Filtering blocks entire categories — like adult content, gambling, or social media — without you having to list each site. Most parental control apps and routers offer both. Filtering is faster to set up but less precise; blocking is more work but gives you exact control.

Do I need to restart my device after blocking a site?

Not usually. Browser extensions take effect immediately. Device-level changes usually take effect right away, though some parental control apps require a restart. Router changes may take a few minutes to apply to all devices on your network.