/* * viaprox.pac * A 1,001 Proxy Configuration * Implemented to soften fravia+'s autumnal spleen :=) * on 13/11/98 by leFaF * All Rights Dispersed */ function FindProxyForURL(url, host) { // If you want to bypass proxy for a specific URL, change the zeros if (isInNet(host, "0.0.0.0", "255.255.255.0")) { return "DIRECT"; } // Same as above. You'll have to key in the DNS if (dnsResolve(host) == "0.0.0.0") { return "DIRECT"; } // What proxies are used for www/gopher/ftp. // Remark, the string can contain any number of proxy as long as they are separated by a semicolon. // If there are multiple semicolon separated settings, the left-most setting will be used, // but if the Navigator/Communicator fails to establish the connection to the proxy, in that case the next // value will be used, that is the DIRECT connection. if (url.substring(0, 5) == "http:") { return "PROXY cache.iaccess.com.br:3128; PROXY proxy.flex.ee.uec.ac.jp:8080; PROXY proxy.sby.dnet.net.id:8080"; } if (url.substring(0, 7) == "gopher:") { return "PROXY proxy.one:3128; PROXY proxy.two:8080; PROXY proxy.three:8081"; } if (url.substring(0, 4) == "ftp:") { return "PROXY proxy.one:3128; PROXY proxy.two:8080; PROXY proxy.three:8081"; } else { // If no proxy available -! no stealth anymore !- use the direct connection return "DIRECT"; } }