Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Last active February 13, 2019 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlaw1979/2ab22988ede1b26d6a390e4e00e27e32 to your computer and use it in GitHub Desktop.
Save ericlaw1979/2ab22988ede1b26d6a390e4e00e27e32 to your computer and use it in GitHub Desktop.
Hide Traffic based on Process Name
//Hide Traffic based on Process Name
//The following script creates a ShowOnly submenu on the Rules menu that allows you to easily display captured
//traffic from only a single executable:
RulesString("ShowOnly", true)
BindPref("fiddlerscript.rules.ProcessFilter")
RulesStringValue(0,"Chrome", "chrome")
RulesStringValue(1,"FireFox", "firefox")
RulesStringValue(2,"IE", "iexplore")
RulesStringValue(3,"Edge", "msedge")
RulesStringValue(4,"&Custom...", "%CUSTOM%")
public static var sOnlyProc: String = null;
// Add the following to the OnPeekAtRequestHeaders function:
if (!String.IsNullOrEmpty(sOnlyProc)) {
var s = oSession.LocalProcess;
if (!s.StartsWith(sOnlyProc, StringComparison.OrdinalIgnoreCase)) {
// Or use oSession.Ignore() instead of setting the ui-hide flag
oSession["ui-hide"] = "Rules>ShowOnly";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment