Skip to content

Instantly share code, notes, and snippets.

@kaizimmer
Created January 2, 2012 15:57
Show Gist options
  • Save kaizimmer/1551201 to your computer and use it in GitHub Desktop.
Save kaizimmer/1551201 to your computer and use it in GitHub Desktop.
Fiddler Rule - hide local traffic
static function OnBeforeRequest(oSession: Session)
{
//*/
if (oSession["X-CLIENTIP"] != null && oSession["X-CLIENTIP"].EndsWith("ffff:127.0.0.1"))
{
oSession["ui-hide"]="hiding local host"; //String value not important
}
//*/
// remainder ...
}
@kaizimmer
Copy link
Author

This is part of the Handlers class (located in "user-directory/my documents/Fiddler2/Scripts/CustomRules.js").
You can edit this file directly from within Fiddler2 by installing the RulesTab2 extension (which is part of FiddlerSyntaxSetup.exe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment