function FindProxyForURL(url, host) { /* serverip: The external IP address of the Smoothwall. */ var serverip = "81.137.2.253"; /* smoothwallHostname: The host name of the Smoothwall. */ var smoothwallHostname = "EPFW001.edenpark.local"; /* The global proxy policy port. */ var globalProxyPort = 805; /* If the host is the server, or the localhost matches the host name, * then return direct; and don't go through the proxy. */ if ((host == serverip) || localHostOrDomainIs(host, smoothwallHostname)) { return "DIRECT"; } /* If the host looks like something for an intranet (i.e., contains * no dots), then don't proxy these requests. */ if (isPlainHostName(host)) return "DIRECT"; /* Everything else is subject to being proxied. */ return "PROXY " + serverip + ":" + globalProxyPort; }