Filtering fiddler to only capture requests for a certain domain

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.


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


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.