How to Block a Website: Router, Browser and Device Methods

Learn how to block a website at the browser, device or router level. Step-by-step methods for Chrome, iPhone Screen Time, the hosts file and home routers.

By Galactic News Editorial · Published 2026-11-28T07:41:12+00:00 · Updated 2026-11-28T07:41:12+00:00

How to block a website using router, browser and device methods

How to Block a Website: Router, Browser and Device Methods

To block a website, pick the level that matches your goal. Block it in the browser for one person on one computer. Block it on the device for every browser on that phone or laptop. Block it at the router or DNS level for every device on your home network. This guide walks through each method with numbered steps, so you can choose the right one and set it up in minutes.

No single method is perfect. Browser blocks are easy to bypass. Device blocks are stronger but cover one device at a time. Router blocks cover the whole network but do not follow a phone onto mobile data. Many families combine two levels: a device control on the child's phone plus DNS filtering on the router. If one layer fails, the other still catches the site.

How to Block a Website in Your Browser

Browser blocking is the fastest option for your own computer. It works inside one browser only. Open a different browser and the block is gone. That makes it best for focus and distraction control, not for parental control.

Use a browser extension

Extensions are the easiest way to block a site in Chrome or Firefox. BlockSite and StayFocusd are widely used options. BlockSite has more than a million users on the Chrome Web Store, according to coverage of the extension.

  1. Open the Chrome Web Store and search for BlockSite.
  2. Click Add to Chrome, then Add extension to install it.
  3. Open the extension settings and choose Block Sites.
  4. Type the website address you want to block and save it.
  5. Set a password in the extension if it offers one, so the block cannot be removed in seconds.

StayFocusd works the same way for time limits. You set a daily time allowance for chosen sites. When the time runs out, the extension blocks the site until the next day. That suits distraction control better than a hard block.

Block sites in managed Chrome

Organisations can push a blocklist to managed Chrome browsers from the Google Admin console. According to Google's Chrome Enterprise documentation, admins can add up to 1,000 URLs to the blocked or allowed lists. This only applies to company or school devices, not a personal Chrome install.

  1. Sign in to your Google Admin account and go to the home page.
  2. Go to Devices > Chrome > Settings > Users & Browsers.
  3. Choose the organisational unit the block should apply to.
  4. Scroll to URL Blocking and enter the URLs under Blocked URLs.
  5. Click Save. The block applies when the managed browser next syncs.

How to Block a Website on a Device

Device-level blocking covers every browser on that device. It is the right choice for a child's phone or tablet, and for your own computer when you want a block that survives a browser switch.

Block a website on iPhone and iPad with Screen Time

Apple's Screen Time feature blocks websites across Safari and other browsers on the device. The menus moved in recent iOS versions, so follow the current path below.

  1. Open Settings and tap Screen Time.
  2. Tap Content & Privacy Restrictions and turn the switch on.
  3. Tap App Store, Media, Web, & Games, then tap Web Content.
  4. Choose Limit Adult Websites. Two lists appear underneath.
  5. Under Never Allow, tap Add Website, type the address and tap Done.
  6. Repeat for each site you want to block.
  7. Set a Screen Time passcode under Lock Screen Time Settings. Without a passcode, the block can be undone in seconds.

For a child's iPhone, set this up from your own phone through Family Sharing. Open Settings, tap Screen Time, tap your child's name under Family, then follow the same steps. The Only Approved Websites option is stricter: only the sites you approve will load at all. That suits young children best.

Block a website on Windows with the hosts file

The hosts file maps website names to IP addresses before Windows asks a DNS server. Pointing a site at your own computer blocks it in every browser on that machine. You need administrator access to edit the file.

  1. Search for Notepad, right-click it and choose Run as administrator.
  2. Open the file at C:\Windows\System32\drivers\etc\hosts.
  3. Add one line per site in this format: 127.0.0.1 www.example.com
  4. Add a second line without the www prefix: 127.0.0.1 example.com
  5. Save the file and restart your browser. The site should no longer load.

To undo the block, delete the lines you added and save again. Anyone with administrator access can reverse it, so this method suits your own computer, not a shared family machine.

Block a website on Android with Family Link

Google Family Link manages a child's supervised Google account. It works on Android phones and Chromebooks. You can block sites in Chrome on the supervised account and set content filters from your own phone. For your own Android phone, a blocking app from the Play Store, such as the BlockSite app, adds the same kind of control with a password lock.

How to Block a Website at the Router and DNS Level

Router and DNS blocking covers every device on your Wi-Fi network: phones, laptops, tablets, smart TVs and game consoles. It is the strongest option for a whole household. It does not follow a phone onto mobile data, so pair it with a device control for full coverage.

  1. Find your router's admin address. It is usually printed on a sticker on the router, and is often 192.168.1.1 or 192.168.0.1.
  2. Type that address into a browser and log in with the router's username and password. Change the default password if you have never changed it.
  3. Look for Parental Controls, Access Control, Website Blocking or a similar menu. The name varies by router brand.
  4. Add the websites you want to block to the list. Some routers accept full domains, others accept keywords.
  5. Save the settings and restart the router if it asks you to.
  6. Test the block from a phone and a laptop on the Wi-Fi. The site should fail to load on both.

DNS filtering is the alternative when your router has no blocking menu. A DNS filtering service replaces your router's DNS servers with filtered ones. You set the filter list once, and every device using that DNS gets the same blocks. The setup is a single change in the router's internet settings, but the exact steps depend on your router model, so check its manual.

Which Website Blocking Method Should You Choose?

MethodCoverageHow hard to bypassBest for
Browser extensionOne browserLowFocus and distraction control
Hosts fileOne computer, all browsersMediumPersonal blocking without an app
Screen TimeApple devices on one Apple IDHigh with a passcodeKids on iPhone, iPad and Mac
Family LinkChrome on supervised accountsMedium to highKids on Android and Chromebook
Router or DNS filteringEvery device on the networkMediumWhole home or office

Match the method to the person, not the device. For your own focus, an extension is enough. For a child, use Screen Time or Family Link on their device, plus router filtering at home. For a workplace, use managed Chrome policies or a DNS filter that IT controls.

Common Mistakes When Blocking a Website

The most common mistake is blocking the site without the www prefix, or with it. Block both versions, or the site will still load under the other address. The second mistake is forgetting the passcode. A Screen Time block without a passcode is a suggestion, not a control. The third mistake is testing the block on one device and assuming the whole house is covered. A router block only works on Wi-Fi. Test it on each device that matters.

Another mistake is relying on a single layer. A determined teenager will find a way around any one method: a different browser, mobile data, a VPN. Two layers, device plus network, make bypassing the block much harder. No method is unbreakable. The goal is to make the block strong enough that bypassing it takes real effort and leaves a trace.

Bottom Line

Blocking a website is a five-minute job once you pick the right level. Use an extension for your own focus. Use Screen Time or Family Link for a child's device, and always set the passcode. Use router or DNS filtering to cover the whole home network. Block both the www and non-www versions of each site, test the block on every device, and layer two methods together when the block really matters.