Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering whether theres a possibility in todays common browser's to switch the Proxy based on the URL-Pattern.

Thanks!

share|improve this question
    
yes its possible for e.g consider getfoxyproxy.org/patterns.html u can find reference – BlueBerry - Vignesh4303 Oct 9 '13 at 14:08
    
I have seen this, but isn't it only available in the paid version? – Alessandro Oct 9 '13 at 14:11
    
This question has already been answered superuser.com/questions/614132/… You can use a PAC. – Christian Woerz Oct 9 '13 at 14:14
    
so u need like browser addons which switch proxy based on url pattern? – BlueBerry - Vignesh4303 Oct 9 '13 at 14:14
1  
@Chris that question relates to changing proxy at windows,this question is about the browser – BlueBerry - Vignesh4303 Oct 9 '13 at 14:15
up vote 1 down vote accepted

I would recommend you, to use the FoxyProxy-addon for the Firefox together with a PAC-file.

FoxyProxy uses your standard PAC-file:

Excerpt from FoxyProxy-FAQ

When you configure a proxy in FoxyProxy and select "Automatic proxy configuration URL" on the "Proxy Details" page, you're specifying that FoxyProxy use a PAC for any patterns associated with this proxy configuration. In other words, for each URL that matches a URL pattern defined by a proxy configuration specified to use a PAC, FoxyProxy calls that PAC's FindProxyForURL() implementation. The return value of FindProxyForURL() determines which proxy (if any) is used.

You can add different proxies for different urls to the PAC-File.

function FindProxyForURL(url, host) {
        // our local URLs from the domains below example.com don't need a proxy:
        if (shExpMatch(host, "*.example.com"))
        {
                return "DIRECT";
        }

        // URLs within this network are accessed through
        // port 8080 on fastproxy.example.com:
        if (isInNet(host, "10.0.0.0", "255.255.248.0"))
        {
                return "PROXY fastproxy.example.com:8080";
        }

        // All other requests go through port 8080 of proxy.example.com.
        // should that fail to respond, go directly to the WWW:
        return "PROXY proxy.example.com:8080; DIRECT"; 
}
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .