function FindProxyForURL (url, host) { if (url.substring (0, 5) == "http:" || url.substring (0, 4) == "ftp:") if (isInNet(myIpAddress(), "203.150.0.0", "255.255.0.0") || isInNet(myIpAddress(), "203.151.0.0", "255.255.0.0") || isInNet(myIpAddress(), "203.154.0.0", "255.255.0.0") || isInNet(myIpAddress(), "202.44.192.0", "255.255.192.0")) if (dnsDomainIs(host,".inet.co.th") || dnsDomainIs(host,".thai.com") || dnsDomainIs(host,".thai.net")) return "DIRECT"; else return "PROXY proxy.inet.co.th:8080"; else return "DIRECT"; else return "DIRECT"; }