Search code examples
firefoxfirefox-developer-tools

How to filter multiple domains in Firefox DevTools' Network panel?


I am debugging an API request in Firefox and I am looking to filter multiple domains in the developer tools' Network panel. I can filter by one domain with the domain:domainname.com, but how do I add additional domains?


Solution

  • Filtering by two domains is not directly possible because the filters in the Network panel is always accumulative, though one workaround is to use a regular expression property filter.

    This allows you to provide several domains separating them by pipes (|) like this:

    regexp:domain1.com|domain2.com
    

    That should work in most cases, but note that this is not just filtering by domain but searching within all the data inside the requests. That means that when the domain name appears in one of the other columns, the request will also be listed.

    Another way to achieve this is to use negative filtering by prepending the filter expression with a minus (-).

    So in order to get the requests of two domains you have to write several -domain: expressions for all domains you want to exclude.