The main ways to block a webpage
You can block websites at three different levels: on a single browser, across your whole device, or on your entire home network. Browser-level blocking works fastest if you only need to stop yourself from visiting one site. Device-level blocking affects all browsers and apps on that computer or phone. Network-level blocking stops anyone on your Wi-Fi from reaching certain sites, which is useful if you're managing access for a household.
The method you choose depends on what you're trying to do. If you want to prevent yourself from visiting a distraction site during work hours, a browser extension takes two minutes. If you're setting limits for a child's device, you'll want device-level parental controls. If you need to block a site across your entire home network, you'll configure your router.
Key Takeaways
- Browser extensions like LeechBlock NG or Cold Turkey Block add a blocking layer to your web browser without affecting other programs on your device.
- Device-level blocking through parental controls or settings affects all browsers and apps, and usually requires a password to disable.
- Router-level blocking stops the blocked site from loading on any device connected to your Wi-Fi network.
- Most blocking tools let you set schedules so sites are only blocked during certain hours, and many require a restart or password to turn off.
Blocking websites in your browser
The simplest method is a browser extension. On Chrome, Firefox, Safari, or Edge, you can install a free blocking extension in seconds. Popular options include LeechBlock NG (Chrome and Firefox), Cold Turkey Block (Chrome), and Freedom (all browsers). After you install the extension, you add the website URL to a blocklist, and the extension prevents that page from loading when you try to visit it.
Most browser extensions let you set a schedule. You can block a site only during work hours, for example, or only on weekdays. Some extensions require you to set a password before you can disable the block, which makes it harder to unblock the site on impulse. The downside of browser blocking is that it only works in that specific browser — if you use Chrome for work and Firefox for browsing, you'd need to install the extension in both.
If you use a Chromebook, you can also block sites through your Google Account settings. Sign into your Google Account, go to myaccount.google.com, and look for "Manage your Google Account." From there you can set up SafeSearch, which filters search results and blocks adult content across Google Search, YouTube, and Google Images.
Blocking websites on Windows, Mac, or Linux
Device-level blocking affects every browser and app on your computer. On Windows 10 and 11, you can use the built-in parental controls. Go to Settings > Accounts > Family & other users, add a family member account (or use an existing one), then click "Manage family settings online." From there you can block specific websites and set time limits for when the device can be used.
On Mac, open System Settings > General > Parental Controls (or Screen Time on newer versions). You can restrict access to websites and set downtime schedules. Both Windows and Mac parental controls require you to set a password, so the person using the device can't simply turn off the restrictions.
On Linux, you can edit the hosts file to block websites system-wide. Open a terminal and edit /etc/hosts as root, then add entries like "127.0.0.1 example.com" for each site you want to block. This method is more technical and requires command-line knowledge, but it blocks the site at the operating system level before any browser even tries to load it.
Blocking websites on iPhone or Android
On iPhone, use Screen Time to block websites. Go to Settings > Screen Time > Content & Privacy Restrictions, turn on restrictions, then go to Content Restrictions > Web Content. You can allow unrestricted access, limit adult websites, or create a custom list of sites to block. Screen Time requires a passcode to disable.
On Android, the method depends on your phone's manufacturer. On Samsung devices, go to Settings > Parental Controls and turn on the feature, then add sites to the blocklist. On other Android phones, you may need to use a third-party app like AppBlock or Freedom. Some Android phones also let you set up a supervised user account through Google Family Link, which includes website blocking.
Blocking websites on your home network
To block a website for everyone on your Wi-Fi, you configure your router. Log into your router's admin panel by typing your router's IP address (usually 192.168.1.1 or 192.168.0.1) into a browser. You'll need your router's admin password, which is often printed on the router itself or in the manual.
Once you're logged in, look for a section called "Parental Controls," "Access Control," "Content Filtering," or "Website Blocking" — the exact name varies by router brand. Add the website URL or domain name to the blocklist. Some routers let you set schedules so the block only applies during certain hours. Changes usually take effect immediately, though you may need to restart the router for some settings to apply.
If your router doesn't have built-in blocking, you can use a DNS-level blocker like OpenDNS or Cloudflare's 1.1.1.1 for Families. These services intercept DNS requests (the system that translates website names into addresses) and block certain sites before your device even tries to connect. You change your router's DNS settings to point to their servers instead of your internet provider's. This method blocks the site across all devices on your network without needing to configure each device individually.
What happens when you try to visit a blocked site
When you try to load a blocked website, you'll see an error page instead of the site's content. The exact message depends on how the site is blocked. A browser extension might show a custom message saying "This site is blocked." Device-level blocking usually shows an error like "This site can't be reached." Router-level blocking often shows a blank page or a message from your router manufacturer.
Some blocking tools let you customize the message that appears, which can be useful if you're setting up blocking for someone else and want to explain why the site is blocked. Others show a timer counting down until the block expires if you've set a schedule.
Removing or bypassing a block you set
If you set a password on your block, you'll need that password to turn it off. If you forgot the password, you may be able to reset it through the extension or tool's settings, though this varies by tool. Some extensions like Cold Turkey Block have a "frozen turkey" mode that prevents you from disabling the block even if you know the password — you have to wait until the scheduled time expires.
If you blocked a site at the router level and forgot your router's admin password, you can usually reset the router to factory settings by holding the reset button for 10 seconds. This erases all your custom settings, so you'd need to reconfigure your Wi-Fi password and other settings afterward.
Frequently Asked Questions
Can someone bypass a website block I set?
It depends on the level of blocking. Browser extensions are easy to disable if someone knows they're installed. Device-level blocks with a password are harder to bypass without the password. Router-level blocks are the hardest to bypass because they work before the device's browser even tries to connect — the only way around them is to use a different network, like mobile data or a neighbor's Wi-Fi.
Will blocking a website slow down my internet?
No. Browser extensions have minimal impact on speed. Device-level and router-level blocking actually happen before the blocked content loads, so they don't slow anything down — they just prevent the connection from happening in the first place.
Can I block a website on just my work computer without affecting my personal browsing?
Yes. Use a browser extension on your work browser, or set up a separate user account on your work computer with device-level blocking enabled. That way your personal account remains unrestricted.
What's the difference between blocking a site and using a VPN to hide my browsing?
Blocking prevents you from reaching a site. A VPN hides your browsing activity from your internet provider by routing your traffic through another server. They do opposite things — blocking restricts access, while a VPN protects privacy.
If I block a site at the router level, can I unblock it just for my device?
Not easily. Router-level blocks apply to the entire network. To unblock it for one device, you'd need to either remove the block from the router (which unblocks it for everyone) or use a VPN on that device to route around the router's blocking.