function FindProxyForURL(url, host) { if (shExpMatch(url,"*.example.com/*")) { return "DIRECT"; } if (isInNet(myIpAddress(), "192.0.2.0", "255.255.255.0")) { return "PROXY proxy.example.com:8080"; } else return "DIRECT"; }