Filtering fiddler to only capture requests for a certain domain

前端 未结 5 1158
日久生厌
日久生厌 2021-01-30 00:56

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?

相关标签:
5条回答
  • 2021-01-30 00:59

    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.

    0 讨论(0)
  • 2021-01-30 00:59

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

    0 讨论(0)
  • 2021-01-30 01:00

    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.

    0 讨论(0)
  • 2021-01-30 01:09

    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

    0 讨论(0)
  • 2021-01-30 01:21

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

    0 讨论(0)
提交回复
热议问题