Join our Newsletter — 33% off our NHI Course

WebRequestBlocking

WebRequestBlocking is the part of the WebRequest API that lets an extension synchronously block, redirect, or alter a network request before the browser sends it. It applies where immediate request control is needed, because the extension can stop traffic rather than only observing it.

How WebRequestBlocking Works

WebRequestBlocking is the synchronous control layer of the WebRequest API. It lets an extension intercept a request before the browser sends it, which means the extension can decide in real time whether to allow, redirect, or modify traffic.

That timing matters: because the decision happens before the request leaves the browser, WebRequestBlocking can shape network behaviour at the point of egress, not after the fact. It is therefore more powerful than passive observation APIs and more sensitive to incorrect logic or overbroad rules.

Why Blocking Matters for Browser Security

The main security value of blocking is that it can prevent a request from reaching a destination at all, which is useful for filtering unsafe hosts, enforcing policy, or rewriting traffic to a safer endpoint. It also gives extensions the ability to alter headers and URL targets in ways that can enforce or bypass security assumptions, depending on how it is used.

Because the feature sits in the request path, it effectively becomes part of the browser’s trust boundary. When an extension has the authority to change outbound traffic, its policy becomes security-relevant infrastructure rather than simple UI behaviour.

Request Interception, Trust, and Performance Trade-offs

Blocking interception creates a strong control point, but it also introduces latency sensitivity and reliability risk. If the extension stalls, fails open, or applies the wrong rule, users may see broken page loads, degraded application behaviour, or unintended access to resources that should have been stopped.

It also concentrates trust in the extension logic and its update process. A flawed rule set can disrupt legitimate traffic, while a malicious or compromised extension can redirect requests, inject unsafe destinations, or weaken the browser’s normal security controls.

Common Uses and Operational Boundaries

In practice, WebRequestBlocking is most often associated with request filtering, URL rewriting, privacy enforcement, and security tooling that needs deterministic control over outbound web traffic. Those use cases depend on precise scoping, because the same capability can also interfere with authentication flows, content delivery, and API calls.

The browser model therefore places a premium on minimal privilege, narrow match conditions, and careful change control. A blocking rule that seems small can have wide effects once it applies across tabs, sessions, embedded resources, or cross-origin requests.

Risk and Threat Considerations

WebRequestBlocking can create meaningful exposure if an extension is too powerful, too broadly scoped, or too easy to compromise. The same mechanism that stops harmful traffic can also be used to redirect requests, tamper with security-sensitive headers, or disable protections that downstream services expect to see.

Failure mechanism: A malicious rule, compromised extension, or logic error can alter traffic before browser enforcement or server-side checks occur, turning request control into a privilege-escalation or interception path.

Impact: The result can be request hijacking, policy bypass, session disruption, privacy leakage, or unsafe communication with attacker-controlled endpoints.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, NIST CSF 2.0, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 SC-7 — Boundary Protection WebRequestBlocking controls traffic at a browser boundary.
AC-6 — Least Privilege Extensions that can block or rewrite requests need tightly scoped authority.
Recommendation — Constrain request interception rules to approved destinations and trust boundaries. Limit extension permissions to the smallest request-control scope needed.
NIST CSF 2.0 PR.AA-05 — Least Privilege Access Permissions Blocking logic should only act on the minimum set of requests required.
Recommendation — Apply least-privilege scoping to request interception and rule matching.
OWASP ASVS V13 — Configuration Blocking behavior depends on secure, reviewable browser extension configuration.
Recommendation — Review extension configuration and rule changes before deployment.
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software Browser extensions with blocking power must be hardened and governed as software configuration.
Recommendation — Harden extension settings and restrict unmanaged rule changes.

Practitioner Guidance

Why practitioners should care: Treat any extension using WebRequestBlocking as part of the browser’s security perimeter, not as a convenience feature. Its rules can affect request integrity, user privacy, and the reliability of authentication or application flows.

What to watch for: Review the exact match scope, allowed destinations, and update path for the extension, especially where the same logic touches login pages, identity providers, API traffic, or sensitive internal hosts.

Practitioner takeaway: The safest deployments are the ones that keep blocking logic narrowly targeted, easy to audit, and difficult to abuse.