How to block websites on Chrome: every method that works

Sameed Ahmad
By Sameed Ahmad, who builds Focus AI (so read the Focus AI parts with that in mind).
Updated October 2026
Short answer: Chrome has no "block this site" button on a personal computer. The fastest way is a blocker extension (two minutes). The free way without an extension is your computer's hosts file. For a child's account, use Family Link. If you keep switching your blocker off, the method matters less than how hard it is to undo, which is why the table below has that column.
MethodWorks onFreeHow easy to undoBest for
Blocker extensionWindows, Mac, Linux, ChromebookUsually2 clicksMost people
Hosts fileWindows, Mac, LinuxYes1 minute, needs adminA few sites, forever
Chrome policy (URLBlocklist)Windows (Mac via profile)YesNeeds adminA shared or family PC
Family LinkChild accounts: Android, ChromebookYesParent onlyKids
Private DNS filterAndroidFree tierSettings togglePhones (no extensions)
Task-based blocker (Focus AI)Chrome, Edge, Firefox3 sessionsTyping a sentenceStudying and deep work

1. Block websites with a Chrome extension (2 minutes)

This is how most people do it, and it works the same on Windows, Mac and a personal Chromebook.

  1. Open the Chrome Web Store and search for a website blocker (BlockSite, LeechBlock NG and StayFocusd are common list-based ones).
  2. Click Add to Chrome, then pin the extension so its icon stays in the toolbar.
  3. Open the extension and add the sites you want blocked, for example youtube.com or reddit.com.
  4. Optional: set a schedule (only during work hours) or a password.
  5. Open chrome://extensions, click Details on the blocker and turn on Allow in Incognito. Without this, incognito skips the block.

The catch: the off switch is in the same browser. Disabling the extension takes two clicks, and the moment you want to is the moment the block exists for. Password and "locked" modes help, but most of them can still be removed from the extensions page.

2. Block websites on Chrome without an extension: the hosts file

Your computer checks a small text file, the hosts file, before it looks up any website. Point a site at 127.0.0.1 (your own machine) and it stops loading in every browser, Chrome included.

On Windows

  1. Search for Notepad, right-click it and choose Run as administrator.
  2. Open C:\Windows\System32\drivers\etc\hosts (set the file type to All files to see it).
  3. Add one line per address: 127.0.0.1 reddit.com and 127.0.0.1 www.reddit.com.
  4. Save, then restart Chrome.

On a Mac

  1. Open Terminal and run sudo nano /etc/hosts, then enter your password.
  2. Add the same lines: 127.0.0.1 reddit.com and 127.0.0.1 www.reddit.com.
  3. Press Control-O to save and Control-X to exit, then restart Chrome.

The catch: you need the exact addresses, so sites with many domains (TikTok uses several) leak through. It blocks the whole site, so you can't keep YouTube lectures and lose Shorts. And undoing it is the same one-minute edit.

3. Block websites in Chrome only, with Chrome policy (advanced)

Chrome reads administrator policies, and one of them, URLBlocklist, blocks the sites you list in Chrome for every profile on the computer. Work and school IT departments use it.

  1. On Windows, open the Registry Editor as administrator.
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome and create a key named URLBlocklist (create the Google and Chrome keys if they don't exist).
  3. Inside it, add string values named 1, 2 and so on, each holding one site, such as reddit.com.
  4. Restart Chrome and open chrome://policy to confirm it loaded.

On a Mac the supported route is a configuration profile, which is meant for managed computers. Policy is the strongest free option on a shared or family PC, but anyone with admin rights can delete the key.

4. Block websites on a Chromebook

On a personal Chromebook, Chrome extensions install exactly as on a laptop, so method 1 works unchanged. On a school-managed Chromebook, extensions and blocked sites are controlled by the school's administrator, so you usually can't add your own. For a child's Chromebook, use Family Link (below).

5. Block websites in Chrome on Android

Chrome on Android has no extensions, so method 1 doesn't apply. For a child, Family Link blocks specific sites. For yourself, the common route is Android's Private DNS setting pointed at a filtering DNS service (NextDNS is a popular one with a free tier), where you keep a deny list. It covers every app on the phone, not only Chrome.

6. Block websites on Chrome for a child: Family Link

Google Family Link lets a parent manage a supervised child account. In the parent's Family Link app you can block or allow specific sites in Chrome on the child's Android phone or Chromebook, and the child can't change it. This is the right tool for kids. The rest of this page is for blocking yourself.

7. Block websites by task instead of by list

Every method above blocks a domain. That breaks the first time a blocked site has something you need: the lecture on YouTube, the answer on Reddit. You unblock it "for a minute" and the evening is gone.

This is the problem I built Focus AI for, so weigh this section accordingly. You type what you're working on and pick a session length. Every page is judged against that task: the calculus lecture on YouTube loads, Shorts and the recommended video essay don't. There is no list to maintain. Strict mode is on by default, so ending a session early means typing a sentence instead of clicking a button, and the extensions page is blocked while you're locked in.

Trade-offs: it costs money after 3 free sessions, it works in the browser only (not your phone), and it occasionally misjudges a page, which a short Quick Check covers. Get it from the Chrome Web Store.

FUTURE YOU IS WATCHINGLOCK IN

Block the distraction, keep the work

Type your task, lock in, and every page that doesn't serve it is turned away. First 3 sessions free.

Add Focus AI to Chrome
First 3 sessions free · 30-second setup · No account needed

Which method should you use?

Frequently asked questions

Can I block a website on Chrome without an extension?

Yes, two ways. Edit your computer's hosts file so the site's address points nowhere (127.0.0.1), or set Chrome's URLBlocklist policy, which blocks the site in Chrome only. Both need administrator rights, and both are just as easy to undo for whoever has those rights.

Does Chrome have a built-in website blocker?

Not for a normal personal computer. Chrome only blocks sites through policies set by an administrator (work and school devices) or through Family Link for child accounts. Everyone else uses an extension or the hosts file.

How do I block a website in Chrome incognito mode?

Extensions are off in incognito by default. Open chrome://extensions, click Details on your blocker and turn on Allow in Incognito. The hosts file and Chrome policies already apply in incognito.

How do I block websites on Chrome for my child?

Use Google Family Link. With a supervised child account you can block or allow specific sites in Chrome on Android and Chromebook from the parent's Family Link app, and the child cannot change it.

Can I block only part of a site, like YouTube Shorts but not lectures?

Not with a domain blocker or the hosts file; they see youtube.com and nothing else. You need a tool that looks at the page itself, either a filter that hides Shorts or a task-based blocker that judges each video against what you are working on.

How do I unblock a website on Chrome?

Undo whichever method you used: remove the site from your extension's list, delete its line from the hosts file, delete the URLBlocklist entry and restart Chrome, or ask the parent to allow it in Family Link. Check chrome://policy if a site stays blocked and you don't know why.

Block a specific site