This is a migrated thread and some comments may be shown as answers.

How to blacklist unwanted programs?

2 Answers 931 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Fabian
Top achievements
Rank 1
Fabian asked on 18 Sep 2014, 11:24 PM
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 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 19 Sep 2014, 02:39 PM
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.

 
0
Fabian
Top achievements
Rank 1
answered on 19 Sep 2014, 04:58 PM
Thanks for the reply. It totally fixed my problem. :)
Tags
Windows
Asked by
Fabian
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Fabian
Top achievements
Rank 1
Share this question
or