Why you might block a website from yourself

Blocking a website from your own device stops you from visiting it, even if you change your mind in the moment. This works when you want to reduce time on social media, avoid shopping sites during a budget period, or stay away from content that doesn't serve you. Unlike a parental control that someone else manages, you set up these blocks yourself — though the best ones make them hard to undo on impulse.

The method you choose depends on what you're blocking (a single site or a category), what device you use, and how much friction you want between yourself and the blocked content. A browser extension is easiest to set up but easiest to disable. A router-level block affects every device on your network. Operating system settings sit somewhere in between.

Key Takeaways

  • Browser extensions like Freedom, Cold Turkey, and LeechBlock NG let you block specific websites or entire categories and set schedules for when blocks are active.
  • Router-level blocking through your WiFi settings affects all devices connected to your network, making it harder to bypass than device-level blocks.
  • Operating system features built into Windows, macOS, iOS, and Android can block sites but require more steps to set up than extensions.
  • The most effective blocks make it difficult or time-consuming to disable them — either by requiring a password you don't know or by blocking access to the block settings themselves.
  • Combining methods (for example, a browser extension plus a router block) makes circumventing the block much harder.

Browser extensions that block websites

LeechBlock NG is free and works on Chrome, Firefox, and Edge. You add the websites you want to block, set the times of day they're blocked, and choose whether to allow yourself to disable the block. The extension sits in your browser toolbar, so you see it every time you try to visit a blocked site. You can set different block schedules for different days — for example, blocking social media during work hours but allowing it after 6 p.m.

Freedom costs money (roughly $7 per month or $40 per year) but blocks across all your devices at once — phone, tablet, computer. You can block websites, apps, or both. It includes a "locked mode" that prevents you from turning off the block until the timer runs out, which removes the temptation to disable it on impulse. Freedom also blocks at the system level rather than just in the browser, so you can't bypass it by switching browsers.

Cold Turkey is a Windows and Mac application (not a browser extension) that costs $39 one-time or $9 per month. It blocks websites and applications and includes a "Frozen Turkey" mode where you cannot disable the block under any circumstances until the timer expires — not even by restarting your computer. This makes it one of the hardest blocks to break once it's active.

All three let you add multiple sites at once, create block schedules, and see reports of your browsing. The trade-off is that browser extensions are easier to uninstall than system-level tools, so they work best if you're serious about not wanting to undo them.

Blocking at the router level

Your WiFi router has built-in controls that can block websites for every device connected to your network — phone, laptop, tablet, smart TV. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser, or through the router manufacturer's app) and look for "Parental Controls," "Access Control," or "Website Filtering."

From there, you can enter the domain names you want to block. When anyone on your network tries to visit those sites, the router refuses the connection. The advantage is that this block applies whether you're using Chrome, Firefox, Safari, or any other browser. The disadvantage is that someone with the router's admin password can disable it, and that someone might be you.

To make a router block harder to bypass, change the admin password to something you don't know and give it to someone you trust, or write it down and lock it away. Some routers also let you set a separate "parental control PIN" that's different from the admin password, which adds another layer.

Router blocking doesn't work on mobile data — only on WiFi. If you're trying to block yourself from a site on your phone while you're away from home, you'll need a device-level method instead.

Operating system and device settings

Windows 10 and 11 include a built-in hosts file that can block websites system-wide. Open Notepad as administrator, go to File > Open, and navigate to C:\Windows\System32\drivers\etc\hosts. Add a line like 127.0.0.1 facebook.com for each site you want to block. Save the file. Any browser on that computer will then be unable to reach those sites. The downside is that you can undo this by editing the file again, so it only works if you're disciplined about not doing that.

macOS has a similar hosts file at /etc/hosts, accessible through Terminal. The process is the same: add the site you want to block, save, and it's blocked system-wide.

On iPhone and iPad, go to Settings > Screen Time > Content & Privacy Restrictions > Restricted Websites and add the sites you want to block. You'll need to set a Screen Time passcode that you don't know (or give to someone else) to prevent yourself from removing the block.

On Android, the built-in options are limited. Google Family Link can block apps and websites, but it's designed for parents managing children's devices. For personal use, a browser extension or app like Freedom works better.

Combining methods for stronger blocks

A single block is easy to work around — you can disable an extension, restart your computer to bypass a hosts file, or use mobile data to get around a router block. Combining two or three methods makes circumventing the block much harder.

A common combination is a browser extension (like LeechBlock NG) plus a router block. The extension catches you if you try to visit the site in your browser; the router block catches you if you try to use a different browser or device. Together, they create friction at two different levels.

Another approach is a system-level tool like Freedom or Cold Turkey plus a router block. The system-level tool prevents you from disabling the block on your computer, and the router block prevents you from using a different device on your network.

The most effective setup also includes a password or PIN you don't know. If you set up a router block and give the admin password to a friend, or use Cold Turkey's locked mode with a timer you can't interrupt, you've removed the option to undo the block on impulse.

What to do if you need to unblock a site

If you've blocked a website and later realize you need access to it — for work, for a legitimate reason, or because circumstances changed — the process depends on how you blocked it.

For browser extensions, uninstall the extension or open its settings and remove the site from the blocklist. For router blocks, log back into the router and delete the site from the blocked list. For system-level tools like Cold Turkey, wait for the timer to expire or restart your computer (though Cold Turkey's locked mode survives restarts). For a hosts file, edit the file and delete the line you added.

If you gave your router password to someone else or set a PIN you don't know, contact that person to ask them to change the settings. This is intentional friction — it's supposed to be inconvenient, so you think twice before undoing the block.

Frequently Asked Questions

Can I block a website on just one browser but not others?

Yes, browser extensions like LeechBlock NG only block within that specific browser. If you use Chrome, Firefox, and Safari, a block in Chrome won't affect Firefox or Safari. If you want to block across all browsers, use a system-level tool like Freedom or Cold Turkey, or set up a router block.

What if I use a VPN — will it bypass my blocks?

A VPN won't bypass a router block, because the router filters traffic before it leaves your network. A VPN can bypass some browser extensions if the extension doesn't block at the system level, but tools like Freedom and Cold Turkey block below the VPN layer, so they still work. If you're serious about blocking yourself, avoid using a VPN to circumvent it.

Can I block a website on my phone while using mobile data?

Router blocks only work on WiFi. For mobile data, use a browser extension, a system-level app like Freedom, or your phone's built-in parental controls (Screen Time on iPhone, Family Link on Android). Freedom works across WiFi and mobile data on both platforms.

Will blocking a website slow down my internet?

No. Browser extensions and system-level tools have minimal impact on speed. Router blocks also don't slow your connection — the router simply refuses to connect to blocked domains, which is a fast operation.

Can someone else remove a block I've set up?

It depends on the method. Browser extensions can be uninstalled by anyone with access to your computer. Router blocks can be disabled by anyone who knows the admin password. System-level tools like Cold Turkey are harder to disable without the password. The most secure setup is to give the password to someone you trust, or use a tool with a locked mode that can't be interrupted.