function FindProxyForURL(url, host) { // Send all requests to apple.com to loopback (127.0.0.1:8080) if (dnsDomainIs(host, "apple.com") || shExpMatch(host, "*.apple.com")) { return "PROXY 127.0.0.1:8080"; } // Everything else goes direct return "DIRECT"; }