Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

How to Block a Website on Chrome

Updated November 30, 2026 · Written and reviewed under our editorial policy

Chrome has no built-in "block this site" button for a normal profile. To block a website on Chrome, add it to Chrome's URLBlocklist policy on Windows, Mac or Linux, block it in Google Family Link for a child's account, or install a site-blocker extension. The policy method is the only one a user can't switch off from inside Chrome.

To block a site on Windows with the URLBlocklist policy:

  • Press Win + R, type regedit and press Enter.
  • Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome (create the Google and Chrome keys if they don't exist).
  • Create a new key named URLBlocklist.
  • Inside it, add a String Value named 1 with the site as its data, for example example.com. Use 2, 3 and so on for more sites.
  • Restart Chrome.
  • Open chrome://policy, click Reload policies and check that URLBlocklist shows status OK.

Source: Google Chrome Enterprise Help, "Allow or block access to websites" and "Set Chrome browser policies on managed PCs", checked 2026-11-28.

Block a website on Chrome with the URLBlocklist policy (Windows, Mac, Linux)

URLBlocklist is a Chrome policy that lists the addresses Chrome must refuse to load. It is the same setting companies push to managed browsers, and it works on a personal computer too. A matching URLAllowlist policy sets exceptions, so you can block a whole domain and still allow one page on it.

  • Windows: set the policy in the registry with the steps above, or through Group Policy with Google's Chrome administrative templates.
  • Mac: Chrome reads policies from a configuration profile or a managed preferences .plist for Chrome. Add URLBlocklist as a list of site addresses.
  • Linux: create a JSON file, for example blocklist.json, in /etc/opt/chrome/policies/managed/ containing {"URLBlocklist": ["example.com"]}.

On every system, open chrome://policy afterwards and click Reload policies. When someone opens a blocked site, Chrome shows an error page saying the site is blocked by the administrator, with the code ERR_BLOCKED_BY_ADMINISTRATOR.

A Chrome policy doesn't cover Edge, Firefox or Safari; if other browsers are installed, block the site there too or make Chrome the default browser for this account. A policy block also applies in Incognito; to stop Incognito entirely, turn off Incognito mode.

Blocking rules and content filters can break a site for some visitors. If you run a website, check how a site behaves in other browsers: TestMu AI (formerly LambdaTest) loads it on 3,000+ browsers and 50,000+ real mobile devices.

Block a website on Chrome for a child with Family Link

Google Family Link blocks sites in Chrome for a child's supervised Google Account, on the child's phone and on any computer where they're signed in to Chrome.

  • Open the Family Link app and select your child.
  • Tap Controls, then Google Chrome and Web.
  • Tap Manage sites, then Blocked sites.
  • Tap Add a website and enter the address.

Source: Google For Families Help, "Manage your child's Chrome browser", checked 2026-11-28.

Google documents one gap: on a computer, a child who signs out of Chrome is no longer covered by these settings. For a shared family computer, the URLBlocklist policy above closes that gap.

Block websites on Chrome for Android

Chrome for Android has no per-user setting for blocking a site, and it doesn't run desktop extensions. You have two options:

  • A child's phone: use Family Link with the steps above. The block applies in Chrome on the supervised phone.
  • A work phone: your IT team pushes URLBlocklist to managed Android devices through its device management (MDM) tool, and Chrome enforces it like the desktop policy.

Block a website with a Chrome extension

A site-blocker extension from the Chrome Web Store is the fastest way to block a site for yourself, but the person at the keyboard can undo it. Before you rely on one, know its limits:

  • Incognito: extensions don't run in Incognito windows unless you turn on Allow in Incognito on the extension's details page.
  • Removal: disabling or uninstalling the extension removes the block at once.
  • Profiles: an extension works only in the Chrome profile where it's installed.

If you need a block that holds, use the URLBlocklist policy or Family Link instead.

Block a site for every browser on the computer (hosts file)

The hosts file blocks a site for every browser on the computer, including Edge and Firefox, not only Chrome. Open it as an administrator (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on Mac and Linux), add a line such as 0.0.0.0 example.com, save it and restart the browser. Add a second line for www.example.com if the site uses it.

How to unblock a site you blocked

To unblock a site, undo the method you used to block it:

  • Policy: delete the site's value under the URLBlocklist key (or its line in the JSON file), then open chrome://policy and click Reload policies.
  • Family Link: open Blocked sites and remove the address.
  • Extension: remove the site from the extension's list, or turn the extension off.
  • Hosts file: delete the line you added and save the file.

If a site you never blocked won't load, someone else's rule is in the way. Here's how to open a site Chrome or your network is blocking. If an unblocked site won't keep you signed in, check Chrome's cookie settings.

Why a blocked site still opens

A blocked site that still opens is almost always one of these:

  • Policy not picked up yet: Chrome may not have read the change. Click Reload policies on chrome://policy, or restart Chrome.
  • Typo in the pattern: chrome://policy flags an entry it can't read. Check the spelling, and leave out any trailing spaces.
  • A URLAllowlist exception: an allowlist entry overrides a blocklist entry for the same address.
  • Another profile or browser: an extension block covers only its own Chrome profile, and a Chrome policy doesn't apply to other browsers.

A site can also keep loading from cached DNS; flush the DNS cache after changing the blocklist. An outdated Chrome can also behave differently from these steps; check that Chrome is up to date.

More Chrome settings

Blocking a site is one of several Chrome controls worth knowing. If the problem is unwanted windows rather than whole sites, you can stop Chrome pop-ups in Site settings. For experimental switches that aren't in the Settings menu, see our guide to Chrome flags and hidden settings. On a shared computer, you can also zoom out on Chrome or set one default zoom for every site.

Frequently Asked Questions

Can you block a website on Chrome without an extension?

Yes. Add the site to Chrome's URLBlocklist policy on Windows, Mac or Linux, or block it in Google Family Link for a child's account. Neither method needs an extension, and a user can't switch a policy block off from inside Chrome.

How do I block a website on Chrome on my phone?

On a child's phone, use Google Family Link: open the app, pick the child, then Controls, Google Chrome and Web, Manage sites, Blocked sites, and add the site. Work phones are blocked through the company's device management (MDM). Plain Chrome for Android has no blocklist setting of its own.

Does blocking a site in Chrome also block it in Incognito?

A policy block does, because the URLBlocklist policy applies to every window. An extension block works in Incognito only if the extension is allowed to run in Incognito.

How do I block a website on Chrome for my whole company?

Push the URLBlocklist policy to every managed browser from the Google Admin console, or through Group Policy on Windows. Use URLAllowlist for any exceptions.

Why does Chrome say ERR_BLOCKED_BY_ADMINISTRATOR?

The address matches an entry in a URLBlocklist policy set on the computer or by your organization. Only whoever controls the policy can remove the block.

Related Questions

Test Your Website on 3000+ Browsers

Get 100 minutes of automation test minutes FREE!!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Native E2E testing agent.

...

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests