7

I'm using latest version of firefox (38.0.5 currently) and I need to use proxy configurations only for some URLs and not for every page.

After searching, I found an Addon for Firefox named AutoProxy but after I installed I can not use its preferences to add rules and the defined rules and rules groups are all not visible and this is what I see in preferences:

enter image description here

And when I press "Add proxy rule..." button nothing happens.

Is there any other similar addon for Firefox to define proxy rules for automatically enabling proxy for some URLs and disabling for all others?

oberlies
  • 756

1 Answers1

13

I had a similar requirement and found two solutions to the problem:

  1. If you do not mind paying for the service use FoxyProxy Plus. The free version of FoxyProxy should also work fine for this. You can define rules (even more advanced, e.g. based on current IP address): http://getfoxyproxy.org/fpplus/
  2. More generic - Generate a local Proxy Auto Configuration aka PAC File.

    Sources:

e.g. save the following as text file on your hard drive (change accordingly)

function FindProxyForURL(url, host) {
  host = host.toLowerCase();
  if (dnsDomainIs(host, "site-needs-proxy.example.com") ||
      dnsDomainIs(host, "other-site-same-proxy.example.com"))
    return "PROXY XXX.XXX.XXX.XXX:80"; // (IP:port)
  // add more if blocks for multiple proxies...
  return "DIRECT"; // or the default proxy
}

and go to Tools -> Options (or CMD+; on your Mac) -> Advanced -> Network -> Settings and check: Automatic proxy configuration URL in your Firefox and point it to the file you just created (It should also work in other browsers).

karel
  • 13,706
thorsten
  • 246