How to block a website without an extension
You can block a website without an extension by editing your computer's hosts file, blocking it on your Wi-Fi router, using Google Family Link for a child's account, or setting a Chrome policy. Each works, but each has a catch: admin rights, Chrome's Secure DNS, or blocking for everyone on the network.
The fast way, with Site Blocker- Add to ChromeInstall Site Blocker free from the Chrome Web Store.
- Set your PINsCreate a Master PIN for settings and a Site PIN for locked sites.
- Add a websiteType the site, choose Entire domain or This page only, and press Add to Vault.
Don't want another extension in Chrome? You can block a website without an extension using tools already on your computer or router. Here are four ways, with the honest weak spots of each.
1. The hosts file (Windows and Mac)
The hosts file tells your computer where to find websites. Point a site at your own computer and it won't load.
Windows
- Search for Notepad, right-click it and choose Run as administrator.
- Open
C:\Windows\System32\drivers\etc\hosts(set the file type to All files). - Add a line at the bottom:
127.0.0.1 facebook.com - Add another for the www version:
127.0.0.1 www.facebook.com - Save and restart your browser.
Mac
- Open Terminal and run
sudo nano /etc/hosts. - Add the same lines at the bottom.
- Save with Control + O, exit with Control + X, and restart your browser.
The catch: Chrome's Secure DNS can skip the hosts file. If the site still opens, go to Chrome Settings, Privacy and security, Security, turn off Use secure DNS, and restart Chrome. Anyone with admin rights can also undo the change.
2. Your Wi-Fi router
Most routers have parental controls or a URL / keyword filter. Sign in to your router's admin page (often printed on a sticker on the router), find the filter section and add the site.
The catch: it blocks the site for everyone on that Wi-Fi, and stops working as soon as a device switches to mobile data.
3. Google Family Link (for a child's account)
If your child signs in to Chrome with a Google account you manage through Family Link, you can block sites from the Family Link app under the child's Google Chrome settings.
The catch: it only works for supervised child accounts signed in to Chrome.
4. Chrome policy (advanced)
Chrome supports a URLBlocklist policy that IT teams use to block sites on work computers. On Windows it's set through Group Policy or the registry.
The catch: it's technical, easy to get wrong, and meant for managed computers.
The weak spot all four share
None of these lets you in while keeping others out. A hosts file or router block applies to everyone, including you. To use a site yourself but stop other people opening it, you need a lock, not a block.
That's what Site Blocker does. Every locked site asks for a PIN, changes need a separate Master PIN, and the page is stopped before it loads.
Read how to block a website on Chrome so it stays blocked for the full setup, or block websites for kids on Chrome if you're setting this up for a child.
Frequently asked questions
What's the easiest way to block a website without software? The hosts file. Add a line pointing the site to 127.0.0.1, save, and restart the browser. It needs admin rights.
Why does a site still open after I edited the hosts file? Chrome's Secure DNS can skip your computer's normal DNS lookup. Turn off Use secure DNS in Chrome's security settings and restart Chrome.
Does a router block work on phones too? Yes, for any device on that Wi-Fi network. It stops working when the device uses mobile data or another network.
Can I unblock a site later? Yes. Remove the line from the hosts file, delete the router rule, or remove the site from Family Link or the policy.