Lorenzo
Lorenzo

Reputation: 29427

Filter Fiddler traffic

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?

Upvotes: 227

Views: 106644

Answers (4)

Matas Vaitkevicius
Matas Vaitkevicius

Reputation: 61401

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.

Upvotes: 12

689
689

Reputation: 539

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

Upvotes: 2

stuartd
stuartd

Reputation: 73243

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.

Upvotes: 193

Rasmus Christensen
Rasmus Christensen

Reputation: 8531

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

Upvotes: 350

Related Questions