You should set the property in question in your C# code before
you call .Startup
, because setting it any later than that will cause it to be ignored.
The string in question is a standard "proxy exception list" string that is seen inside browser configuration UI; you can do things like etc. I previously wrote a TON about proxies here: http://blogs.msdn.com/b/ieinternals/archive/2013/10/11/web-proxy-configuration-and-ie11-changes.aspx
Sadly, for your scenario, there's no way to flip the proxy bypass list around and make it a proxy "opt-in" list. Instead, you need to use a Proxy Configuration script (PAC file) and implement a FindProxyForURL function that examines the target hostname and returns "PROXY 127.0.0.1:8888
" if and only if you want the traffic to be sent to the proxy and returns DIRECT
otherwise. That, however, has its own set of problems, because, for instance, Internet Explorer defaults to treating any "DIRECT" site as being on your Intranet Zone, affording it additional permissions.
So, generally speaking what you're trying to do is much harder than it looks. :-(
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items