Fiddler: blocking (filtering) a specific page

I want to filter a specific page from the list of sessions. I'm not talking about filtering all domains / hosts (using the filters tab), and I'm not talking about actually blocking page loading (which can be done with the extension) - I just don't want to see this page in the session list. 10x

+5
source share
3 answers

Rules> Configure rules. Highlight OnBeforeRequest. Add the following block:

if (oSession.fullUrl == "http://whatever/whatever"){
  oSession["ui-hide"] = "do not want to see";
}
+9
source

OnBeforeRequest. - , , .

function RequestContains (uri:String) {
    return oSession.uriContains(uri) || oSession.oRequest.headers.ExistsAndContains("Referer", uri);
}
if (
    false
    ||  RequestContains("url1.aspx")
    ||  RequestContains("url2.aspx")
    ||  RequestContains("url3.aspx")
    ||  RequestContains("url4.aspx")
    ||  RequestContains("url5.aspx")
    ||  RequestContains("service1.svc")
    )
    oSession["ui-hide"] = "true";

false if-, RequestContains, .

- "", URL- FiddlerScript. - , FiddlerScript?

+3

, , javascript. , :

static function OnBeforeRequest(oSession: Session) {

    if (
        oSession.uriContains(".png") ||
        oSession.uriContains(".js") ||
        oSession.uriContains(".gif") ||
        oSession.uriContains(".jpg") ||
        oSession.uriContains(".css") ||
        oSession.uriContains(".woff") ||
        oSession.uriContains(".ttf") ||
        oSession.uriContains(".ico")
    ){
        oSession["ui-hide"] = "1";
    }
0

All Articles