How to blacklist unwanted programs?

3 posts, 0 answers
  1. Fabian
    Fabian avatar
    5 posts
    Member since:
    Sep 2014

    Posted 18 Sep 2014 Link to this post

    I'm using fiddler to debug the http requests of a program that I'm currently writing. So I'm constantly closing and recompiling the program and get a different exe everytime. 
    I tried the "Select process" feature, but it seems to get sticked to a specific PID, so I would have to select my program every time I run it again. 
    The problem with that: My program does an http request right after it's started, so this isn't gonna work. 

    So for now the best thing I can do is to set Fiddler to ignore browsers. But for some reason, some applications just send their traffic through Fiddler even though I haven't configured then to do so. 
    For example Skype and TeamViewer do a lot of http requests in the background and while you download a game on Steam it gets really insane...

    So how can blacklist Skype, TeamViewer and Steam? Or how can I simply disallow programs from using Fiddler without me allowing it?

    Best regards,
    Fabian W.
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 19 Sep 2014 Link to this post

    You've asked two questions:

    1> How do I make it so only my program uses Fiddler?
    2> How do I hide traffic from other programs?

    For #1, you configure Fiddler so that it's not the system proxy (e.g. untick File > Capture Traffic) and then you manually configure your application to use the proxy using any mechanism available. That mechanism will depend on what the application uses for networking; e.g. you can set the .Proxy property on HTTPWebRequest objects if using .NET, or set the command line arguments for Java applets, etc.

    For #2, there are many ways to do this. The simplest would be to click Rules > Customize Rules and scroll to OnPeekAtRequestHeaders. Uncomment the block and add two lines inside it: 

       var sProc = ("" + oSession["x-ProcessInfo"]).ToLower();
       if (!sProc.StartsWith("mylowercaseappname")) oSession["ui-hide"] = "NotMyApp";


    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Fabian
    Fabian avatar
    5 posts
    Member since:
    Sep 2014

    Posted 19 Sep 2014 in reply to Eric Lawrence Link to this post

    Thanks for the reply. It totally fixed my problem. :)
Back to Top