View Full Version: No proxy for local machine

FoxyProxy > Help and Support > No proxy for local machine


Title: No proxy for local machine


sparfitt - October 26, 2006 03:12 PM (GMT)
Hi,

Can I configure foxyproxy to not use a proxy for local machines? I would like to access our local servers such as:

http://sup14
http://dev01

At the moment the proxy has a fit an won't let me access them via firefox.

Eric H. Jung - October 26, 2006 03:44 PM (GMT)
Hi sparfitt,

Yes, you can do this with a PAC file. The PAC file can be saved on your local hard drive or on a webserver. Read this to understand what a PAC file is, then use the isPlainHostName() function; e.g.

(untested)
CODE

function FindProxyForURL(url, host){
 if (isPlainHostName(host)) {
   return "DIRECT"
 }
 else {
   return "SOCKS proxy.bar.com:1050"
 }
}

Optimaximal - November 29, 2007 02:22 PM (GMT)
Is it possible to expand this to take 127.0.0.1 into account?

Eric H. Jung - December 15, 2007 05:52 AM (GMT)
QUOTE (Optimaximal @ Nov 29 2007, 02:22 PM)
Is it possible to expand this to take 127.0.0.1 into account?

Yes.

CODE

function FindProxyForURL(url, host){
 if (isPlainHostName(host) || localHostOrDomainIs(host, "127.0.0.1")) {
   return "DIRECT"
 }
 else {
   return "SOCKS proxy.bar.com:1050"
 }
}

Eric H. Jung - December 15, 2007 06:00 AM (GMT)
This question is now documented here.




* Hosted for free by InvisionFree