Listing 1. Automatic Proxy Configuration Script 1 function FindProxyForURL(url, host) { 2 3 if (!isResolvable("proxy.example.com") { 4 return "DIRECT"; 5 } 6 7 if (shExpMatch(host, "*.example.com")) { 8 return "DIRECT"; 9 } 10 11 if (isInNet(host, "10.0.0.0", "255.0.0.0")) { 12 return "DIRECT"; 13 } 14 15 return "PROXY 10.1.1.158:3128; DIRECT"; 16 }