Filtering fiddler to only capture requests for a certain domain

I'm not sure how to modify the CustomRules.js file to only show requests for a certain domain.

Does anyone know how to accomplish this?


Solution 1:

This is easy to do. On the filters tab, click "show only if the filter contains, and then key in your domain.

enter image description here

Solution 2:

edit

Turns out it is quite easy; edit OnBeforeRequest to add:

if (!oSession.HostnameIs("www.google.com")) {oSession["ui-hide"] = "yup";} 

filters to google, for example.


(original answer) I honestly don't know if this is something that Fiddler has built in (I've never tried), but it is certainly something that Wireshark will do pretty easily - of course, you get different data (in particular for SSL) - so YMMV.

Solution 3:

My answer is somewhat similar to @Marc Gravels, however I prefer to filter it by url containing some specific string.

  1. You will need fiddler script - it's an add-on to fiddler.
  2. When installed go to fiddler script tag and paste following into OnBeforeRequest function. (Screenshot below)

     if (oSession.url.Contains("ruby:8080") || oSession.url.Contains("localhost:53929")) {  oSession["ui-hide"] = "yup";    }
    

enter image description here

This way you can filter by any part of url be it port hostname or whatever.

Hope this saves you some time.

Solution 4:

You can filter the requests using the filter tab in fiddler. Please see screenshots below. If you are using google chrome, be sure to use the correct process id in fiddler(from google chrome).

enter image description here enter image description here enter image description here