Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Fiddler to monitor some HTTP traffic. I want to configure it to watch traffic from a few specific domains.

I know that

  • CustomRules.js can be modified to manipulate traffic passing through fiddler

  • oSession.HostnameIs("required.host.name") can be used to check the host name

  • I want to check the host name in the OnBeforeRequest(oSession: Session) function

What I don't know is the syntax, or property I need to set to ignore or hide sessions.

Any ideas?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Manipulate the OnBeforeRequest function using the following syntax:

if (!oSession.HostnameIs("domainIcareabout.com") &&
        !oSession.HostnameIs("anotherDomainIcareabout.com"))
{
    oSession["ui-hide"] = "Hiding other domains"; // String value not important
}

This page on fiddlertool.com contains some script samples. Search for "Hide requests to domains except those I care about".

share|improve this answer
    
Perfect, thankyou :) –  Sophia Jun 9 '09 at 6:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.