Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

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.

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

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 :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top