V
V
vanokua2014-04-28 13:18:07
Google Chrome
vanokua, 2014-04-28 13:18:07

Proxy for one site using Chrome extension

Is it possible to make traffic from only one domain go through a proxy server, all other requests go without a proxy?
Those. how to write an application that will pass only traffic from mydomain.com through the proxy?
if you do as in the example https://developer.chrome.com/extensions/proxy#over...

       var config = {
         mode: "fixed_servers", 
         rules: {
           proxyForHttp {
             scheme: "socks5", 
             host: "1.2.3.4" 
           } 
           bypassList: ["foobar.com"] 
         } 
       }; 
       chrome.proxy.settings.set (
           {value: config, scope 'regular'}, 
           function () {});

then it changes the browser's global proxy settings and all sites work through a proxy.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mayorovp, 2014-04-29
@vanokua

1. Use the proxy autoconfiguration script.
2. Intercept web requests and send them to the proxy from the background code.

V
Vyacheslav Makodin, 2014-04-29
@noakky

Use pac file with desired rule
There are examples here technet.microsoft.com/en-us/library/cc817412.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question