Home › Web & HTTP

net::ERR_BLOCKED_BY_CLIENT — how to fix

GET https://example.com/js/analytics.js net::ERR_BLOCKED_BY_CLIENT
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

Quick fix: Open the page in an incognito/private window with extensions disabled, or pause uBlock Origin/AdBlock/Privacy Badger for the site. If it is your own site, rename URLs and files that match blocklists (ads, advert, banner, analytics, track, pixel), and make sure the page still works when trackers are blocked.

What it means

ERR_BLOCKED_BY_CLIENT is a Chromium network error (Chrome, Edge, Brave, Opera). "Client" here means the browser, not your client code: a browser extension or a built-in blocker refused to load the URL. The request never left the browser, so there is nothing in your server logs.

In the DevTools Network tab the request is shown in red with this error. A fetch() blocked this way rejects with TypeError: Failed to fetch.

Related errors: ERR_BLOCKED_BY_RESPONSE (blocked because of response headers like Cross-Origin-Resource-Policy) and ERR_BLOCKED_BY_ADMINISTRATOR (enterprise policy). Those have different causes.

Cause 1: an ad blocker or privacy extension

uBlock Origin, AdBlock, AdGuard, Ghostery, Privacy Badger, DuckDuckGo's extension and Brave Shields block URLs that match filter lists (EasyList, EasyPrivacy). These lists match patterns in the URL, not what the file contains.

To confirm:

  1. Open the same page in an incognito window (extensions are off there by default).
  2. Or disable extensions one by one on chrome://extensions.
  3. In uBlock Origin, open its logger to see which filter blocked the request.

If the request succeeds without the extension, that's the cause.

Fix 1 (developer): rename blocked paths

Filter lists commonly match words like:

/ads/  /ad/  advert  banner  sponsor  /analytics  tracking  track.js  pixel  beacon  /stats/

Your own non-ad files can be caught too: /images/banner.jpg, /api/ads-settings, ad-preview.js, /api/track-order. Rename them:

/static/banner-hero.jpg   ->  /static/hero.jpg
/api/ads/list             ->  /api/campaigns/list

Fix 2 (developer): don't let the page depend on third-party trackers

Analytics, tag managers, chat widgets and social embeds are blocked for a large share of visitors. Code like this breaks the whole page for them:

gtag('event', 'signup');          // ReferenceError if the script was blocked

Guard calls so a missing script doesn't throw:

if (typeof window.gtag === 'function') {
  window.gtag('event', 'signup');
}

and never put the main app logic behind an analytics callback (for example, redirecting only after the tracker's onload fires).

Fix 3 (user): allow the site

If a site you trust doesn't work, add it to your blocker's allowlist: in uBlock Origin click the big power button while on the site; in AdBlock choose "Don't run on this site"; in Brave, turn Shields down for the site. Reload the page.

Cause 2: other blockers

If no extension is installed and the error still shows:

DNS-level blockers (Pi-hole, NextDNS) usually produce ERR_NAME_NOT_RESOLVED or a connection error instead of this one.

Last updated 2026-11-29.