Browser Infrastructure Browser
Infrastructure & Scale/Advanced

Network Interception

Listening, blocking, modifying, and mocking HTTP requests and responses at the network boundary.

Dependency Path
Requires:
Used By:
Environment Target
Compatibility: Chrome >= 110
Last Reviewed: 2026-07-18
Recipes: 20 (5 cookbook / 15 playbook)

Why It Matters

Listening, blocking, modifying, and mocking HTTP requests and responses at the network boundary.Also known as: request blocking, response mocking, network interception.

networkinterceptionmockingproxy

Intercepting network actions at the CDP level allows you to block heavy media files (images, CSS), mock API endpoints, inject custom authorization headers, and route traffic through specialized proxy configurations.

Key Applications

  1. Asset Blocking: Block image, font, and analytics requests to reduce bandwidth by up to 80%.
  2. Payload Interception: Intercept raw fetch payloads to extract JSON data streams directly without page DOM parsing.
  3. Response Overriding: Inject mock mockups or stub responses for testing error state workflows.

Example Recipes

+14 more recipes in the knowledge base

Book Coverage

Python Browser Automation Cookbook
5 recipes covering this concept
Browser Automation Playbook
15 recipes covering this concept

Next Steps

Related Concepts