Configure fiddler to not capture requests for certain domains

When you are debugging using fiddler, fiddler generally captures requests from all the domains. An easy way to not capture requests from certain domains is to use the build in “filters” tab in fiddler. Use the “Hide the following hosts” dropdown and key in the list of all the domains that you want to hide.

If you want more granular control then you can override the OnBeforeRequest method in Fiddler’s script using Fiddler’s Script Editor.

static function OnBeforeRequest(oSession: Session) {        
        if (
        	oSession.HostnameIs("www.google.com") || 
        	oSession.HostnameIs("inbox.google.com") || 
        	oSession.HostnameIs("13.client-channel.google.com") || 
        	oSession.HostnameIs("d.docs.live.net") || 
        	oSession.HostnameIs("slack.com") || 
        	oSession.HostnameIs("notifications.google.com") || 
        	oSession.HostnameIs("play.google.com") || 
        	oSession.HostnameIs("cello.client-channel.google.com") || 
        	oSession.HostnameIs("lp-push-server-777.lastpass.com") || 
        	oSession.HostnameIs("ssl.gstatic.com") || 
        	oSession.HostnameIs("clients4.google.com") || 
        	oSession.HostnameIs("clients1.google.com")
        )
        {  
            oSession["ui-hide"] = "hidden";    
        }
        //code omitted for brevity
}

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.