Second Bookmark Bar

How to keep a Chrome extension off your internal sites: runtime_blocked_hosts or the extension's own policy

Use the ExtensionSettings field runtime_blocked_hosts, for example *://*.hr.example.com, to stop an extension from modifying those sites. Chrome enforces it, with up to 100 patterns and no paths. An extension’s own policy, such as Second Bookmark Bar’s PresetExcludedDomains, only changes what that extension chooses to do.

Which control do I need: a security boundary or a tidy screen?

If the worry is that an extension could read or change a sensitive page (HR, finance, a code repository, the intranet), you need a control that Chrome enforces. The extension cannot opt out of it.

If the worry is only that a toolbar or overlay gets in the way, a setting inside the extension is usually enough. That is a layout decision.

I build Second Bookmark Bar, so I use it as one example of the second kind.

Animation in four steps. Three browser tabs are open: intranet.example.com, hr.example.com and news.example.net. An approved extension sends an arrow to each tab. A red wall appears in front of hr.example.com and stops the arrow, labelled Chrome enforces. The extension's bar on intranet.example.com fades to a dashed outline, because the extension's own list hides it. The news tab keeps its bar. Each tab ends with a label saying what happened.
Two layers, two owners. Chrome enforces the wall. The extension honors its own list. The animation stops if your system asks for reduced motion.

In words: an approved extension reaches for three tabs. Chrome stops it at hr.example.com. On intranet.example.com the extension’s own list hides its bar. The news tab keeps the bar.

How do I block an extension from a site with runtime_blocked_hosts?

Google describes runtime_blocked_hosts as a way to prevent extensions from interacting with or modifying the websites you specify. Its examples of modification are script injection, cookie access and web-request modifications.

The rules, taken from Google’s pages:

  • You can block or allow up to 100 URLs. Extra entries are discarded.
  • The format is [http|https|*]://[subdomain|*].[hostname|*].[eTLD|*]. The scheme, hostname and eTLD are required. The subdomain is optional.
  • You cannot define a path. http://example.com/ and http://example.com/* are both listed as invalid.
  • *://* matches all URLs.

A few patterns from Google’s table of valid examples:

PatternMatchesDoes not match
http://*.example.comhttp://example.com, http://test.example.comhttps://example.com
http://example.comhttp://example.comhttps://example.com
*://*.example.*http://example.com, https://test.example.co.ukhttps://example.google.com

Google’s page lists the field names but shows no JSON example, so I built this one-extension ExtensionSettings value from them. Try it on a pilot group. The key is an extension ID; I use Second Bookmark Bar’s.

{"cbpekbmkijoehmojdcfnchhgpmkcgmif":{"runtime_blocked_hosts":["*://*.hr.example.com","*://*.finance.example.com"]}}

On Windows, Google’s policy page puts this under Group Policy, Administrative Templates, Google, Google Chrome, Extensions, “Extension management settings”.

How do I make exceptions with runtime_allowed_hosts?

runtime_allowed_hosts lets extensions interact with the listed sites even if the same sites are in the blocked list. It has the same 100 entry limit and the same no-path format. Allowed entries win.

That gives you a simple pattern: block a wide host, allow a narrow one.

{"cbpekbmkijoehmojdcfnchhgpmkcgmif":{"runtime_blocked_hosts":["*://*.example.com"],"runtime_allowed_hosts":["*://docs.example.com"]}}

Here the extension is kept off example.com except docs.example.com. A sensitive app at example.com/hr cannot be blocked alone, because paths are not allowed.

How do I set it in the Admin console?

Google documents two places in the Admin console.

For all apps and extensions:

  1. Go to Devices, Chrome, Apps & extensions, User app settings. (Chrome Enterprise Core: Chrome browser, Apps & extensions, Settings.)
  2. Optionally select an organizational unit.
  3. Open Additional app settings, then Permissions and URLs.
  4. Enter up to 100 URLs in Runtime blocked hosts, Runtime allowed hosts, or both.
  5. Click Save.

For one extension:

  1. Go to Devices, Chrome, Apps & extensions, then Users & browsers.
  2. Pick the organizational unit or group.
  3. Click the extension in the app list.
  4. Under Permissions and URL access, enter up to 100 URLs in Blocked hosts, Allowed hosts, or both.
  5. Click Save, or Override for an organizational unit.

One change matters. From Chrome 155, per Google’s developer blog, a non-empty blocked hosts list makes chrome.debugger.attach() fail on every target, even for allowed origins. If an extension needs chrome.debugger, do not set blocked hosts for it.

What is the difference between runtime_blocked_hosts and an extension’s own domain policy?

runtime_blocked_hostsExtension’s own domain list
Who enforces itChromeThe extension’s code
ScopeOne extension or all of themThat extension only
PathsNot allowedDepends on the extension
Who sets itThe admin, through policyThe extension’s settings, sometimes also the user
What it stopsScript injection, cookie access, web-request changesWhatever the extension decides to skip
Good forKeeping an extension away from dataKeeping a toolbar out of the way

Worked example: PresetExcludedDomains in Second Bookmark Bar

Second Bookmark Bar draws a second bar of bookmarks on web pages. Its managed_schema.json has three policies: DisableCloudSync, DisableOnboardingSurvey and PresetExcludedDomains. DisableCloudSync has no effect, because there is no cloud sync. Only the last one matters here.

{"PresetExcludedDomains":["intranet.example.com","hr.example.com"]}

This is what the code does:

  • It lists domains where the bar is never rendered. The entries are added to the user’s own excluded list. The user keeps their list and can edit it, but cannot remove entries set by policy.
  • Matching covers the domain and its subdomains. example.com matches example.com and intranet.example.com.
  • The admin list wins over whitelist mode and over the incognito “always show” setting.
  • Entries are domains only. A path-scoped exclusion exists in the user’s own settings, not in this policy.
  • It does not apply to Second Bookmark Bar’s own Start page, which is an extension page, not a site.

Two honest limits, both listed on the enterprise page. The bar can flash briefly on an excluded domain before the policy takes effect. And the popup’s per-site toggle does not yet say that a site is excluded by policy.

Now the part that matters for security. The manifest declares a content script on http://*/* and https://*/*, running at document_start. The exclusion is a decision the extension makes after that, when it asks its background code whether to show the bar for a given URL. So PresetExcludedDomains hides the bar. It does not keep the extension’s code away from the page. That is exactly why I do not call it a security control.

Can I use both?

Yes, and for most fleets that is the right answer.

  1. Use runtime_blocked_hosts for pages where the extension must not run at all: HR, finance, source code, admin tools.
  2. Use the extension’s own list for pages where the extension may run but its interface collides with the app, such as a web app that already uses every pixel at the top of the window.
  3. Read the permission list before either. See the permissions audit and reviewing an extension request.

If a user simply wants the bar hidden on a few sites, they can do that themselves. See hide the bar on specific sites and the matching blog post. If a site clashes with the bar rather than being sensitive, the bar covers a menu, a button or the top of a page is the page to send to users, and the bar isn’t showing checklist mentions the managed list from the user’s side.

What this does not do

  • runtime_blocked_hosts does not support paths, so it cannot protect one section of a site.
  • It does not decide whether an extension may be installed. That is the job of the installation policy. See what a blocked-extension request looks like.
  • I have not tested Second Bookmark Bar under runtime_blocked_hosts, so I will not describe how it behaves when blocked.
  • PresetExcludedDomains is not a security or data-protection control. It hides a bar.
  • Since version 5.1.0 there is an optional Search inside pages setting, off by default and set per user. It has no managed switch, so if you want the extension kept away from a site’s content, runtime_blocked_hosts is the control, not a Second Bookmark Bar policy. What it does is documented on the help page.
  • Second Bookmark Bar has no admin console, no SSO and no central management of its own. Its managed-policy schema has not been used by a real deployment yet.

To deploy settings for an approved extension, see setting policy for a Chrome extension. For the permission review and the honest gaps, read Second Bookmark Bar for IT and security teams.

Sources and last verified

Last verified: 31 October 2026 against Second Bookmark Bar 4.1.3, and re-checked on 12 November 2026 against version 5.1.0 (manifest.json, managed_schema.json: the content script still matches http://*/* and https://*/* at document_start, and the schema still has the same three policies). The Google pages below were read on 31 October 2026:

Questions people ask

Can runtime_blocked_hosts include a path like example.com/hr?

No. Google's ExtensionSettings page says the host pattern format is similar to match patterns except you can't define the path. Block the whole host, or move the sensitive app to its own subdomain.

Can I apply runtime_blocked_hosts to all extensions at once?

Yes, in the Admin console. Under Additional app settings, Permissions and URLs, the Runtime blocked hosts list applies to all apps and extensions, and Runtime allowed hosts holds the exceptions you trust.

Is an extension's own excluded-domain setting a security control?

No. It is enforced by the extension's code, not by Chrome. Use it to keep a toolbar out of the way on certain apps, and use runtime_blocked_hosts when the goal is to keep the extension away from data.

Does Second Bookmark Bar's PresetExcludedDomains cover subdomains?

Yes. An entry like example.com also matches intranet.example.com. Users keep their own list and can add to it, but cannot remove entries set by policy.

Try it in your own bar

Second Bookmark Bar is free to install, works entirely on your device, and takes about a minute to set up.

Add to Chrome — it's free