Can I DevTools?

Share this post

Tips & Tricks #29

canidevtools.substack.com

Tips & Tricks #29

Can I block all network request matching a URL pattern?

Pankaj Parashar
Oct 18, 2022
Share this post

Tips & Tricks #29

canidevtools.substack.com

Chrome, Edge, Opera

  1. Open Command Menu (Cmd+Shift+P or Ctrl+Shift+P) > Run "Show Network request blocking". This will open the Network request blocking drawer.

  2. Click the "+" button and add the URL pattern > Add. Reload the page for the changes to take effect. Filter on Blocked Requests by enabling the checkbox in the toolbar.

canidev.tools/block-request-url-pattern/edge

Firefox

  1. In the Network panel, click the Request Blocking icon in the toolbar, to open the Blocking pane in the left sidebar.

  2. Input the URL pattern and press Enter. Reload the page to see the changes take effect.

canidev.tools/block-request-url-pattern/firefox

Safari

  1. In the Sources panel, Add a new Local Override by clicking the "+" (Create Resource) button.

  2. Select the Type as "Block", and enter the regex for the URL pattern to override the network request for. Reload the page to see the changes take effect.

canidev.tools/block-request-url-pattern/safari
Share this post

Tips & Tricks #29

canidevtools.substack.com
Previous
Next
Comments
TopNew

No posts

Ready for more?

© 2023 Pankaj Parashar
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing