Filter Fiddler traffic

Fiddler

Fiddler Problem Overview


Is it possible to instruct Fiddler to only show me traffic directed to a specific host name? In other words, can Fiddler traffic be filtered for Host?

Fiddler Solutions


Solution 1 - Fiddler

See this screenshot. Located at the top right part of the screen Fiddler localhost filter

Solution 2 - Fiddler

Fiddler's Filters tab can do this - set the 'Hosts' dropdown to 'Show only the following hosts' then put the name in the textbox below.

Solution 3 - Fiddler

Go to fiddler script tag and paste following into OnBeforeRequest function. (Screenshot below)

if (oSession.url.Contains("ruby:8080") || oSession.url.Contains("localhost:1234")) 
{	
     oSession["ui-hide"] = "yup"; // "The "yup" value is unimportant"
}

enter image description here

This way you can filter by any part of url be it port, hostname or whatever. It is useful for filtering out localhost trash as filtering by host alone does not do this...

EDIT as per @baburao comment: Apparently fiddler gives access to process info through the x-ProcessInfo flag. So if you wanna hide a process (say for 'chrome'), change the condition to: if (oSession["x-ProcessInfo"].Contains("chrome"))

Hope this saves you some time.

Solution 4 - Fiddler

An alternative is to filter and export session.

You can filter by typing in the bottom black box area with prefix @ and your hostname. eg, @msn.com

Fiddler documentation has good sample. http://docs.telerik.com/fiddler/knowledgebase/QuickExec

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
QuestionLorenzoView Question on Stackoverflow
Solution 1 - FiddlerRasmus ChristensenView Answer on Stackoverflow
Solution 2 - FiddlerstuartdView Answer on Stackoverflow
Solution 3 - FiddlerMatas VaitkeviciusView Answer on Stackoverflow
Solution 4 - Fiddler689View Answer on Stackoverflow