// Automatic Proxy Configuration Script for clients in // the HZeeland.nl / hz.nl domains (Class B network 145.19.0.0) // Doing proxyserver Load balancing based upon the ipadress of the client // Last modified: 20000108 eddy@HZeeland.nl (145.19.1.220) // Last modified: 20000119 eddy@HZeeland.nl (client distribution changed) // Last modified: 20011205 eddy@HZeeland.nl (added net 145.19.97) // // This version is used when all proxy-servers (www-proxy1, www-proxy2 and hz-cis) // are operating. function FindProxyForURL(url, host) { if (isPlainHostName(host) || dnsDomainIs(host, ".hzeeland.nl") || dnsDomainIs(host, ".HZeeland.nl") || dnsDomainIs(host, ".hz.nl") || dnsDomainIs(host, "localhost") || isInNet(host, "145.19.0.0", "255.255.0.0")) return "DIRECT"; else if (url.substring(0,6) == "snews:") return "DIRECT"; else if (isInNet(myIpAddress(), "145.19.100.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.97.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.19.0", "255.255.255.0")) return "PROXY 145.19.1.222:3128; " + "PROXY 145.19.1.221:3128"; else if (isInNet(myIpAddress(), "145.19.33.0", "255.255.255.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.221:3128"; else if (isInNet(myIpAddress(), "145.19.52.0", "255.255.255.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.221:3128"; else if (isInNet(myIpAddress(), "145.19.56.0", "255.255.255.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.221:3128"; else if (isInNet(myIpAddress(), "145.19.64.0", "255.255.255.0")) return "PROXY 145.19.1.221:3128; " + "PROXY 145.19.1.220:3128"; else if (isInNet(myIpAddress(), "145.19.80.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.20.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.21.0", "255.255.255.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.221:3128"; else if (isInNet(myIpAddress(), "145.19.128.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.129.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.130.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.131.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.132.0", "255.255.255.0")) return "PROXY 145.19.128.224:3128; " + "PROXY 145.19.1.221:3128"; else return "PROXY 145.19.1.221:3128; " + "PROXY 145.19.1.220:3128"; }