I tried Titanium C# Web Prox, and I am very happy with it. The only point is about to know how can I configure the Web Proxy to handle only web traffic that concerns a specific domain, let say contoso.org. In fact, this custom web proxy is created only to manage related traffic to this domain, and does not have to handle the web request from other domains.
I saw that an ExplicitEndpoint is configured and applied to SystemHttpsProxy on the windows internet options, but I didnt find any options to apply it only to my domain, contoso.org
Thanks a lot.
If i understand well you want to capture the traffic to specific domain. You could try this:
explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 8000, true);
explicitEndPoint.BeforeTunnelConnectRequest += ExplicitEndPoint_BeforeTunnelConnectRequest;
proxyServer.AddEndPoint(explicitEndPoint);
private Task ExplicitEndPoint_BeforeTunnelConnectRequest(object sender, TunnelConnectSessionEventArgs e)
{
var hostName = e.HttpClient.Request.RequestUri.Host;
if (!hostName.Contains("contoso.org"))
{
e.DecryptSsl = false;
}
return Task.CompletedTask;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.