Filters on Fiddler

1,437 views
Skip to first unread message

Vinay N

unread,
Aug 12, 2013, 4:05:36 AM8/12/13
to httpf...@googlegroups.com
I want to block javascripts and images getting recorded in my Fidller tool

At the same time it should work in Browser.

I tried enabling the filters for javascript and images it worked fine in Fiddler at the same time IE/Firefox blocked the javascript/CSS/img on Browser too.

EricLaw

unread,
Aug 12, 2013, 10:17:52 AM8/12/13
to httpf...@googlegroups.com
Please explain specifically what you want:
 
1> I want to hide images and JavaScripts in Fiddler's Web Sessions list, but want that content to successfully be downloaded
2> I want to block the download of images and JavaScripts by the browser

Vinay N

unread,
Aug 13, 2013, 8:55:10 AM8/13/13
to httpf...@googlegroups.com
I want  to enable the fiddler filter to block JScripts/CSS/Images  , at the same time it should allow the javascript /images/ css  to be loaded on the browser

But those http sessions should not be displayed in the Fiddler tool , It should not disable these things getting on to browser.

Hope this helps , thanks a bunch for your help


Regards
Vinay N

Vinay N

unread,
Aug 13, 2013, 9:43:46 AM8/13/13
to httpf...@googlegroups.com
1> I want to hide images and JavaScripts in Fiddler's Web Sessions list, but want that content to successfully be downloaded onto browser

Can we do this in Fiddler ?

EricLaw

unread,
Aug 13, 2013, 4:57:05 PM8/13/13
to
Of course. On the Filters tab, the Response Type and Size box has a dropdown that allows you to hide images, or show only other content types, but it doesn't enable the particular combination you've asked for.
 
No worries, you can easily write a FiddlerScript Rule to do this.
 
In Fiddler, click Rules > Customize Rules.
 
Scroll to either the OnPeekAtResponseHeaders or OnBeforeResponse methods. Inside the method, add the following lines:
 
  var sMIME: String = oSession.oResponse.MIMEType;
  if (sMIME.Contains("image/") || sMIME.Contains("script")) { 
    oSession["ui-hide"] = "FiddlerScript: Hide scripts and images";
  }
 
Save the script file and you will find that images and script requests are now hidden from the Web Sessions list.
 
 

Vinay N

unread,
Aug 14, 2013, 7:04:49 AM8/14/13
to httpf...@googlegroups.com
Thanks a bunch it worked that solved my problem

I have couple of questions

1> Can Fiddler track incoming traffic from only the 1st IE instance , if I launch IE twice only the first instance sessions should get recorded.

when I mean 2nd instance a separate  IE window will be browsed those session traffic should be ignored if this is possible at all.

2> Can we restrict the users to only Inspector ,Time Frame tabs ? if so please let me know.

Once again Thanks a lot Eric.

Regards
Vinay N

EricLaw

unread,
Aug 14, 2013, 4:52:54 PM8/14/13
to httpf...@googlegroups.com
You can filter to a single process using the Process icon in the Fiddler toolbar; simply drag/drop it to the HTML of the window whose traffic you want to see.
 
It's technically *possible* to hide the other tabs (and you can easily do so temporarily by middle-clicking or ctrl+right-clicking the tab title) but it's not obvious why this would be desirable?

Vinay N

unread,
Aug 15, 2013, 10:17:04 AM8/15/13
to httpf...@googlegroups.com
Thanks a lot this helped me.

All your suggestions are working for me as expected.

Once again Thanks.

Regards.
Vinay N
Reply all
Reply to author
Forward
0 new messages