What blocking yourself from a website actually does
Blocking yourself from a website prevents your device from loading that site, even if you type the address directly or click a link. The block stays in place until you remove it — which is the point. You set it up when you want to stop yourself from visiting, knowing that removing the block takes enough steps that you'll have time to reconsider.
This is different from your browser forgetting a password or clearing your history. Those are cleanup tools. Blocking is a friction tool — it makes the thing you want to avoid harder to do on purpose, so impulse visits become less likely.
The methods range from straightforward (your browser's built-in tools) to more stubborn (third-party software that's harder to bypass). Which one you pick depends on how determined you are to stay away and whether you need the block to survive a browser restart or a determined attempt to undo it.
Key Takeaways
- Browser extensions like Freedom, Cold Turkey, and LeechBlock NG let you block sites on a schedule or permanently, and they're harder to disable than built-in browser settings.
- Your operating system's hosts file can block websites at the network level, which means no browser can reach them, but it requires editing a text file.
- Router-level blocking affects every device on your network but requires access to your router's settings and works best if someone else controls the password.
- Browser settings alone (like parental controls or extensions you can easily uninstall) work for casual blocking but not if you're trying to resist your own willpower.
- The most effective blocks combine multiple methods — for example, an extension that blocks the site plus a router setting that prevents you from disabling the extension.
Browser extensions that block websites
Browser extensions are small programs that add features to your web browser. Several of them specialize in blocking websites, and they work by intercepting requests before your browser can load the page. When you try to visit a blocked site, you see a message instead of the content.
Freedom and Cold Turkey are the most common paid options. Both let you set schedules (block a site only during work hours, for example), block multiple sites at once, and set a block that requires you to wait a certain amount of time before you can disable it. Cold Turkey is more aggressive — it can block sites even if you restart your browser or try to uninstall the extension. Freedom works across devices if you use the same account on multiple computers.
LeechBlock NG is free and open-source, meaning the code is public and anyone can inspect it. It's less powerful than Cold Turkey but more flexible than basic browser settings. You can block sites on a schedule, set daily time limits, and require a password to disable the block.
The weakness of all browser extensions is that you can uninstall them if you really want to. If you're trying to block yourself from your own willpower, you need either a block that makes uninstalling difficult (Cold Turkey does this) or a second layer of protection, like a router-level block that prevents you from changing browser settings.
Blocking at the operating system level using the hosts file
Every device has a file called the hosts file that tells your computer which web addresses go to which servers. You can edit this file to send a blocked website to a fake address, which means your browser can never reach it — no matter which browser you use or whether you uninstall extensions.
On Windows, the hosts file is at C:\Windows\System32\drivers\etc\hosts. On Mac and Linux, it's at /etc/hosts. You open it with a text editor, add a line like 127.0.0.1 reddit.com, save it, and from then on, your device treats reddit.com as if it doesn't exist.
The catch is that editing the hosts file requires administrator access, and you have to do it manually for each site you want to block. If you block yourself this way, you'll need to edit the file again to unblock — which takes enough friction that you might reconsider. Some people ask a trusted friend to change their administrator password so they can't easily undo the block.
This method survives browser restarts, extension uninstalls, and most attempts to bypass it. The main limitation is that it blocks the site completely — you can't set a schedule or time limit, and it blocks the site for every program on your device, not just your browser.
Blocking at the router level
Your router is the device that connects your home network to the internet. Most routers have a settings page where you can block websites for all devices on your network at once. This is the most stubborn method because it works regardless of which device you use, which browser you open, or what extensions you install.
To access your router settings, open a web browser and go to 192.168.1.1 or 192.168.0.1 (the exact address is usually printed on the router itself). Log in with the router's username and password — often "admin" and "admin" or "admin" and the router's serial number. Look for a section called "Parental Controls," "Access Control," or "Website Filtering."
From there, you can add websites to a blocklist. The router will refuse to load those sites for any device connected to your network. The limitation is that you need access to the router to change the settings, so if someone else controls the password, you can't easily undo the block — which is the point if you're trying to block yourself from your own willpower.
Router blocking is less precise than browser extensions. It can't set schedules or time limits, and some routers have weak filtering that determined users can bypass. But combined with an extension or hosts file block, it creates multiple layers of friction.
Combining methods for stronger blocks
The most effective approach uses more than one method at once. For example: use Cold Turkey to block the site in your browser, edit your hosts file to block it at the operating system level, and ask someone else to set a router-level block and change the router password so you can't undo it.
This layering works because each method has a weakness. Browser extensions can be uninstalled. The hosts file can be edited if you have administrator access. Router blocks can be bypassed if you know the password. But if you stack them, you'd have to undo all three to visit the site, which gives you multiple chances to change your mind.
The trade-off is convenience. If you block yourself too thoroughly, you might not be able to visit the site even when you have a legitimate reason to. Before you set up multiple blocks, think about whether you might need access later — for example, if you're blocking a social media site but your job requires you to check it occasionally.
Removing a block you've set up
How you remove a block depends on which method you used. Browser extensions can usually be uninstalled from your browser's settings menu. The hosts file can be edited by opening it again and deleting the line you added. Router blocks can be removed by logging back into the router and deleting the site from the blocklist.
If you used Cold Turkey with a timer, you'll have to wait for the timer to expire before you can disable it. If you asked someone else to change your router password, you'll have to ask them to change it back. If you don't have administrator access to your computer, you might not be able to edit the hosts file without help.
This friction is intentional. The goal of blocking yourself is to make visiting the site inconvenient enough that you'll reconsider. If you can remove the block in 30 seconds, it's not much of a barrier. If it takes asking a friend for help or waiting for a timer, you have time to think about whether you actually want to visit.
When to use each method
Use a browser extension if you want to block a site during specific hours (like work time) or if you want to set a time limit on how long you can visit. Use the hosts file if you want a block that survives browser restarts and uninstalls. Use router blocking if you want to block a site for everyone on your network or if you want the block to be harder for you to undo without help.
If you're blocking a site because you find it distracting but don't have a strong compulsion to visit it, a straightforward browser extension is usually enough. If you're blocking a site because you struggle with impulse control, combine a browser extension with either a hosts file block or a router block, and consider asking someone else to set the router password so you can't easily undo it.
The most important thing is picking a method you'll actually use. A block that's too complicated might sit uninstalled. A block that's too weak might not create enough friction. Start with one method and add more if you find yourself bypassing it.
Frequently Asked Questions
Can I block a website on my phone?
Yes. On iPhone, go to Settings > Screen Time > Content & Privacy Restrictions > Restricted Websites and add the site. On Android, use an app like Freedom or Cold Turkey, which work the same way as on computers. Phone blocking is easier to bypass than computer blocking because you can usually uninstall the app, but it still creates friction.
What if I block a site but then need to visit it for work?
Set a schedule instead of a permanent block. Most browser extensions let you block a site only during certain hours or days. Alternatively, use a timer that requires you to wait a set amount of time before you can disable the block — that way you can still access the site if you need to, but you have to plan ahead instead of visiting on impulse.
Can someone else block a website on my computer without my permission?
Yes, if they have administrator access to your computer or your router. This is why router-level blocking is sometimes used by parents for children's devices. If you're concerned about unauthorized blocking, check your browser extensions, your hosts file, and your router settings. If you find a block you didn't set, change your passwords and consider running a security scan.
Will blocking a website slow down my internet?
No. Browser extensions and hosts file blocks happen on your device before the request reaches the internet. Router blocks happen at the router level and don't affect speed. The only noticeable effect is that the blocked site will fail to load instead of taking time to appear.
What's the difference between blocking and just deleting a bookmark?
Deleting a bookmark only removes a shortcut — you can still type the address directly or find the site through a search engine. Blocking prevents the site from loading at all, which removes the option to visit on impulse. Blocking is friction; deleting a bookmark is just cleanup.