Block a website on Chrome: 4 ways
Chrome has no button to block a site. There are four ways to do it: an extension, the computer's hosts file, a Chrome policy, or Family Link for a child's account. For yourself, the extension is the simplest.
The four ways at a glance
| Way | For | What it takes | To undo it |
|---|---|---|---|
| An extension (Claryda) | You, in your browser | One click, no account | From the extension, after a confirmation |
| The hosts file | The whole computer, every browser | Administrator rights; one line per address | Remove the line from the file |
| A Chrome policy (URLBlocklist) | Chrome, on that computer | Administrator rights; the registry or a policy file | Only as an administrator |
| Family Link | A child's Google account | A supervised account; the parent's app | Only by the parent |
1. With an extension
It's the only way that needs no administrator rights, and the only one that does more than block. With Claryda:
- Add Claryda to Chrome from the Chrome Web Store. No account to create.
- Open the site to block, click Claryda's icon in the toolbar, then “Block this site”.
- The site shows Claryda's page instead, its subdomains included.
- Whole categories: Social media, Video and streaming, News, Sports, Shopping, Online games, Betting and casinos, Adult content.
- A time a day rather than a block: see Limit YouTube to 30 minutes a day.
- A Pomodoro that shuts limited sites during work: see Block YouTube while you study.
- With Pro, a password to unblock, schedules and strict mode. See pricing
2. With the hosts file
The hosts file tells the computer which address goes with a site's name. Point a site to 0.0.0.0 there, and no browser on the computer opens it any more. On Windows:
- Open Notepad as administrator (right-click, “Run as administrator”).
- Open the file
C:\Windows\System32\drivers\etc\hosts(choose “All files” to see it). - Add one line per address, for example
0.0.0.0 youtube.com, then0.0.0.0 www.youtube.com, and save.
On macOS and Linux, the file is /etc/hosts, opened with sudo in a terminal. If the site still opens, clear Chrome's cache at chrome://net-internals/#dns (“Clear host cache”).
- One line per address: m.youtube.com or music.youtube.com have to be added one by one.
- No category, schedule or time limit, and Chrome shows a “This site can't be reached” error rather than a blocked page.
3. With a Chrome policy
Chrome reads policies set by the computer's administrator. The URLBlocklist policy blocks a list of addresses, and the user can't remove it from Chrome. On Windows:
- Open the Registry Editor (
regedit) as administrator. - Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\URLBlocklist, creating the keys that are missing. - Add a string value named
1withyoutube.comas its data, then 2, 3… for the next sites. - Restart Chrome, then check at
chrome://policythat URLBlocklist is listed.
An entry youtube.com also blocks its subdomains. On a Mac, the same URLBlocklist key goes in a configuration profile; on Linux, in a JSON file in /etc/opt/chrome/policies/managed. A mistake in the registry can trouble Windows: touch only this key.
Chrome then says it's “Managed by your organization” in its menu, and a blocked site shows the error ERR_BLOCKED_BY_ADMINISTRATOR.
4. With Family Link, for a child
Google's Family Link supervises a child's Google account. The parent manages the sites Chrome blocks for that account from the Family Link app, in the Google Chrome settings. It only works on a supervised account, not on yours.
Which one to pick
- For yourself, every day: the extension. It takes one click, blocks whole categories and can limit a site instead of shutting it.
- For the whole computer, every browser: the hosts file, if a few addresses are enough.
- For a shared or managed computer: the Chrome policy, which only an administrator can undo.
- For a child: Family Link.
To block on the whole network, phones included, see the DNS filter in the guide Block adult sites on Chrome.
Questions
- Does Chrome have a setting to block a site?
- No. Chrome's settings block a site's notifications or pop-ups, not the whole site. It takes one of the four ways above.
- What about Incognito windows?
- The hosts file and the Chrome policy block there too. An extension only works in Incognito if you allow it; Claryda's welcome page shows you where.
- Does it work on a phone?
- These ways are for the computer, except Family Link, which also manages the child's phone.
Block a site, in one click.
Also for Edge, Brave, Opera and Arc
Read next
- Schedule · ProNov 2, 2026 · 2 min readBlock social media during work hoursShut Instagram, TikTok, X, Reddit and the rest during work hours only, with a schedule in Chrome, and what you can do for free.Read
- IncognitoNov 2, 2026 · 2 min readBlock websites in IncognitoChrome turns extensions off in Incognito: how to let a site blocker work there, and what stays open (Guest mode, other profiles).Read