Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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. –  c0dev 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
show 2 more comments

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.