Last active
February 13, 2019 17:16
-
-
Save ericlaw1979/2ab22988ede1b26d6a390e4e00e27e32 to your computer and use it in GitHub Desktop.
Hide Traffic based on Process Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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