Can I DevTools?

Share this post

Tips & Tricks #27

canidevtools.substack.com

Tips & Tricks #27

Can I block all network requests of a domain?

Pankaj Parashar
Oct 16, 2022
Share this post

Tips & Tricks #27

canidevtools.substack.com

Chrome, Edge, Opera

  1. In the Network panel, right click on the network request, and select "Block request domain". This will open the Network request blocking drawer that will let you manage blocked network requests.

canidev.tools/block-request-domain/chrome

Firefox

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

  2. Add the domain name in the input box to block all the matching requests for that domain.

canidev.tools/block-request-domain/firefox

Safari

  1. In the Network panel, right click on the request and select "Create Response Local Override" to open the Sources panel, which contains the list of all local overrides.

  2. Right click on the override and select "Edit Local Override...". Add the domain name in the URL pattern and use Status as 404: Not Found to block all the network requests for that domain.

canidev.tools/block-request-domain/safari
Share this post

Tips & Tricks #27

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