What blocking a site actually does
Blocking a website stops your device or network from loading it. When you try to visit a blocked site, you see an error message or a blank page instead of the website's content. The block happens before your browser even connects to the site — your device intercepts the request and refuses to complete it.
Blocking works differently depending on where you set it up. You can block at the device level (one computer or phone), the network level (everything connected to your router), or the browser level (just one web browser). Each method blocks the same site in different ways and for different reasons.
The most common reasons people block sites are parental controls for children, reducing distractions while working, preventing access to malware-hosting pages, or enforcing workplace policies. The method you choose depends on who needs the block and how permanent it should be.
Key Takeaways
- Device-level blocking (through settings or parental controls) affects all browsers and apps on that specific computer or phone.
- Router-level blocking stops the site for everyone connected to your Wi-Fi network, but does not affect devices on mobile data.
- Browser extensions and built-in browser features block sites only within that one browser, so switching browsers bypasses the block.
- The hosts file method is permanent and difficult to undo without technical knowledge, so use it only for sites you never want to visit.
- Parental control software can track which sites a child visits and set time limits, but a determined user can sometimes work around it.
Blocking a site on Windows
The simplest method on Windows is to edit the hosts file, a text document that tells your computer which web addresses go where. Adding a line to this file makes your computer refuse to connect to a specific site. Open Notepad as administrator, go to File > Open, and navigate to C:\Windows\System32\drivers\etc. Open the file named hosts (no extension). At the bottom, add a new line: 127.0.0.1 example.com, replacing example.com with the site you want to block. Save the file.
This method blocks the site in all browsers on that computer, but it is permanent until you remove the line. If you want to unblock it later, you have to edit the hosts file again. For temporary blocking or parental controls, use Windows Parental Controls instead. Go to Settings > Accounts > Family & other users, select the child's account, click Parental controls, and add sites to the blocked list. This method is easier to manage and allows you to set time limits on device use.
Blocking a site on Mac
On Mac, the hosts file method works the same way as Windows, but the file location is different. Open Terminal (find it in Applications > Utilities), type sudo nano /etc/hosts, and press Enter. You will be asked for your password. Add the line 127.0.0.1 example.com at the bottom, then press Control+X, then Y, then Enter to save. This blocks the site in all browsers.
For parental controls, go to System Settings > General > Parental Controls (or Family Sharing on newer Macs). Create a child account and set content restrictions. You can block specific websites, restrict app downloads, and set screen time limits. This is easier to manage than the hosts file and lets you adjust restrictions without editing system files.
Blocking a site on your router
Blocking at the router level stops the site for everyone connected to your Wi-Fi network. Log into your router's admin panel by typing 192.168.1.1 or 192.168.0.1 into your browser's address bar (check your router's label for the exact address). Enter your router's username and password — the default is often admin/admin, but check your manual if that does not work.
Look for a section called Parental Controls, Access Control, or Content Filtering. The exact menu name varies by router brand. Add the website's address to the blocked list. Save your changes. From that point on, any device on your Wi-Fi network will be unable to reach that site. This method does not affect devices using mobile data instead of your Wi-Fi, so a phone on cellular data can still visit the blocked site.
Blocking a site in your browser
Most browsers have built-in blocking features or support extensions that block sites. In Chrome, install an extension like BlockSite or LeechBlock NG from the Chrome Web Store. Open the extension, add the site you want to block, and choose whether to block it always or during certain hours. The block only works in Chrome — opening Firefox or Safari bypasses it entirely.
In Firefox, the process is similar: search the Firefox Add-ons store for a blocking extension, install it, and configure your blocked sites. In Safari on Mac, go to Preferences > Websites and scroll to the bottom to find the option to restrict adult content or manage specific sites. In Edge, use the built-in Family Safety feature or install a third-party extension.
Browser-level blocking is the easiest to set up and the easiest to remove, but it is also the easiest to bypass. A user can straightforward open a different browser or clear the extension's data. For this reason, browser blocking works best for your own focus and distraction management, not for enforcing restrictions on someone else's device.
Blocking a site on your phone
On iPhone, go to Settings > Screen Time > Content & Privacy Restrictions > Restricted Websites. Add the site to the blocked list. You can also use the built-in parental controls by setting up Family Sharing and creating a child account with content restrictions. On Android, the process depends on your phone's manufacturer. Most Android phones have a built-in parental control app — search Settings for "parental controls" or "family link". Google Family Link is the most common option and lets you block sites, set app limits, and monitor usage.
Phone-level blocking affects all browsers and apps on that device. However, a user can sometimes bypass it by using a VPN (a tool that masks your location and internet activity) or by switching to mobile data if the block is only on Wi-Fi. For stronger enforcement on a child's phone, use Google Family Link or Apple's Family Sharing, which offer more detailed monitoring and are harder to work around.
When blocking does not work the way you expect
Blocking a site at the device or router level does not stop someone from using a VPN to bypass it. A VPN makes it appear as though the user is in a different location, so the block no longer applies. If you are trying to enforce restrictions on a child's device, be aware that determined users can find workarounds. The most effective approach combines blocking with open conversation about why the restriction exists.
DNS-level blocking (blocking at your internet service provider level) is another method some networks use, but you cannot set this up yourself — only your ISP or network administrator can. Some workplaces and schools use DNS filtering to block sites across their entire network. If you are on a network you do not control and a site is blocked, contact your network administrator to request access.
Frequently Asked Questions
Can I block a site on just one app?
No. Blocking happens at the device, network, or browser level — not at the app level. If you want to prevent access through one app, you would need to uninstall the app or use parental controls to restrict it entirely. Some apps have their own internal content filters, but these are app-specific settings, not site blocks.
What happens if I block a site and then forget I blocked it?
You will see an error message when you try to visit it. If you used the hosts file method, you have to edit the file again to remove the block. If you used parental controls or a browser extension, you can unblock it through the same menu where you set it up. Router blocks can be removed by logging back into your router's admin panel.
Does blocking a site hide my activity from my internet provider?
No. Your internet provider can still see that you tried to visit the site — the block just prevents your device from connecting. If you want to hide your browsing activity, you need a VPN, which encrypts your traffic. Blocking and privacy are two different things.
Can someone unblock a site I blocked on their phone?
If you set up parental controls through Family Sharing (Apple) or Family Link (Google), they cannot unblock it without your password or approval. If you only used a browser extension or the hosts file, they can unblock it by removing the extension or editing the file. Parental control software is harder to bypass than browser-level blocking.
Will blocking a site speed up my internet?
Slightly, but not noticeably. Blocking prevents your device from loading that one site, which saves a tiny amount of bandwidth. The real benefit of blocking is focus and control, not speed. If your internet is slow, the problem is usually your connection speed, not the sites you visit.