// Proxy auto-configuration for Warwick site access. function FindProxyForURL(url, host) { // Anything in warwick.ac.uk domain could need the proxy, but only do it for http/https. //if ((dnsDomainIs(host, ".warwick.ac.uk") || isInNet(host, "10.0.0.0", "255.0.0.0")) && if (dnsDomainIs(host, ".warwick.ac.uk") && (url.substring(0,5) == "http:" || url.substring(0,6) == "https:" )) { return "PROXY wwwcache.warwick.ac.uk:3128"; } // Fallback - i.e. use DIRECT for everything else. return "DIRECT"; }