Filtering fiddler to only capture requests for a certain domain

C#.NetWindowsFiddler

C# Problem Overview


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?

C# Solutions


Solution 1 - C#

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 - C#

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 - C#

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 - C#

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

Solution 5 - C#

The Fiddler site has a cookbook of a whole bunch of things that you can do with CustomRules.js, including how to do exactly this :)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCVertexView Question on Stackoverflow
Solution 1 - C#TerrenceView Answer on Stackoverflow
Solution 2 - C#Marc GravellView Answer on Stackoverflow
Solution 3 - C#Matas VaitkeviciusView Answer on Stackoverflow
Solution 4 - C#Ajit GoelView Answer on Stackoverflow
Solution 5 - C#Simon LieschkeView Answer on Stackoverflow