Skip to content

Behind the scene network requests

Raymond Hill edited this page Mar 30, 2018 · 52 revisions

Back to Dynamic filtering: default-deny

[This wiki page out of date and in need of revision]


The filtering of behind-the-scene network request is available to advanced users.

What are behind-the-scene network requests

Behind-the-scene network requests are network requests which uBlock cannot associate with a specific tab in your browser: these requests come from somewhere, but uBlock is missing information to report exactly from where.

All network requests without a specific origin are classified as behind-the-scene. Typically, all blockers will ignore and automatically whitelist behind-the-scene network requests.

For the Chromium browser, examples of behind-the-scene network requests:

  • made by the browser to update extensions
  • made by the browser because of specific functionality, like the setting "Use a prediction service to help complete searches and URLs typed in the address bar"
  • made by web pages using navigator.sendBeacon(), hyperlink auditing, et al.
  • made by installed extensions for not-so-good or good reasons (uBlock makes behind-the-scene requests to fetch the filter lists when they need to be updated)

How to inspect the behind-the-scene popup panel

  • uBO from Chrome store: chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/popup.html?tabId=-1&fullsize=1.
  • uBO from Opera store: chrome-extension://kccohkcpppjjkkjppopfnflnebibpida/popup.html?tabId=-1&fullsize=1.
  • uBO from AMO (Firefox): chrome://ublock0/content/popup.html?tabId=-1&fullsize=1.

For Chromium-based browsers, if you install uBO manually, you will have to replace the id part (i.e. cjpalhdlnbpafiamejdnhcphjbkeiagm) by the id used in your installation.

How to inspect behind-the-scene network requests

Starting with uBlock version 0.8.6.0, you can inspect behind-the-scene network requests using the network request logger. Simply select the "Behind the scene" entry in the drop down list.

c
Various extensions installed to show that that these too make behind-the-scene requests

Typically, you will leave the network request logger opened for a long duration in order to catch any and all behind-the-scene network requests.

The ability to inspect behind-the-scene network requests is available to all users. You do not need to enable "advanced user" mode to see them in the network request logger.

How to filter behind-the-scene network requests

Important: The blocking of behind-the-scene network requests can cripple important functionality of your browser or installed extensions. If you decide to block some behind-the-scene network requests, you are entirely responsible for the consequences.

The ability to filter behind-the-scene network requests is only available when "Advanced user" is enabled in the uBlock options.

The behind-the-scene virtual tab is whitelisted by default. No filtering will occur even after you enable "Advanced user" mode.

To access the filtering settings for behind-the-scene network requests, simply open the popup UI in the network request logger while the "Behind the scene" entry is selected:

Behind-the-scene popup
The popup UI will be filled with the settings/data of whatever tab is being currently inspected in the request logger.

The image above shows what happens when you navigate through Github: Github makes use of navigator.sendBeacon() to send data to Google Analytics, which results in the firing of behind-the-scene requests in the Chromium browser.

Important: Filter behind-the-scene requests at your own risk. I will close without further comment any reported issue which is a direct consequence of blocking behind-the-scene network requests.

Remember that if you block indiscriminately, you could cripple the ability of your browser to update parts of itself or update extensions as well as the ability of extensions to work properly. This is why this is an advanced user feature.

To turn off the filtering of behind-the-scene requests, whitelist the "Behind the scene" scope or turn off "Advanced user" mode.

To whitelist the behind-the-scene scope, add behind-the-scene as a whitelist directive in the Whitelist tab of the uBlock dashboard.

If there are only very specific behind-the-scene network requests you would like to filter, a good approach to minimize potential problems is to use dynamic filtering: set a local rule for the all cell to allow (green) (i.e. behind-the-scene * * allow). This will ensure nothing is blocked in the behind-the-scene scope, just as if uBlock is disabled for that scope. Then create block rules for the specific hostnames for which you want to block all network requests, or noop if you want to subject those hostnames to static filtering only.

Clone this wiki locally