function FindProxyForURL(url, host) { var ipDestino = dnsResolve(host); // Destinos para acesso direto sem proxy // A1 Interno if(isInNet(ipDestino, '127.0.0.0', '255.255.255.0')) { return "DIRECT"; } if(isInNet(ipDestino, '10.9.8.0', '255.255.255.128')) { return "DIRECT"; } if(isInNet(ipDestino, '192.168.0.0', '255.255.0.0')) { return "DIRECT"; } if(shExpMatch(url, "ftp:*")) { return "DIRECT"; } // A1 Externo if(dnsDomainIs(host, ".a1.ind.br")) { return "DIRECT"; } if(isInNet(ipDestino, '187.72.92.0', '255.255.255.224')) { return "DIRECT"; } // Parceiros, gov, etc. - abrir no firewall! if(dnsDomainIs(host, ".promon.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, ".metso.com")) { return "DIRECT"; } if(dnsDomainIs(host, ".mcafee.com")) { return "DIRECT"; } if(dnsDomainIs(host, ".avast.com")) { return "DIRECT"; } if(dnsDomainIs(host, ".teamviewer.com")) { return "DIRECT"; } if(dnsDomainIs(host, "sd.maisemprego.mte.gov.br")) { return "DIRECT"; } if(shExpMatch(url, "200.152.35.65")) { return "DIRECT"; } if(dnsDomainIs(host, "teste.qualiex.com.br")) { return "DIRECT"; } // if(dnsDomainIs(host, ".catho.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, ".microsoft.com")) { return "DIRECT"; } // ABNT if(dnsDomainIs(host, ".abntcolecao.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, ".abntcatalogo.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, ".abntnet.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, ".abnt.org.br")) { return "DIRECT"; } if(shExpMatch(url, "205.237.197.94")) { return "DIRECT"; } if(shExpMatch(url, "205.237.201.200")) { return "DIRECT"; } if(shExpMatch(url, "205.237.197.94")) { return "DIRECT"; } if(shExpMatch(url, "67.222.240.186")) { return "DIRECT"; } // Cisco Jabber if(dnsDomainIs(host, "www.ciscojabbervideo.com")) { return "DIRECT"; } if(dnsDomainIs(host, "proxy.ciscojabbervideo.com")) { return "DIRECT"; } if(shExpMatch(url, "199.19.190.12")) { return "DIRECT"; } if(shExpMatch(url, "54.208.247.222")) { return "DIRECT"; } // CEF if(isInNet(url, "200.201.160.0", "255.255.240.0")) { return "DIRECT"; } if(isInNet(url, "189.9.0.0", "255.255.0.0")) { return "DIRECT"; } if(dnsDomainIs(host, ".esocial.gov.br")) { return "DIRECT"; } // Ptrobrás if(dnsDomainIs(host, ".petrobras.com.br")) { return "DIRECT"; } // Itau if(isInNet(url, "200.196.152.0", "255.255.255.0")) { return "DIRECT"; } if(isInNet(url, "184.85.143.170", "255.255.255.255")) { return "DIRECT"; } if(dnsDomainIs(host, "itau.com.br")) { return "DIRECT"; } if(dnsDomainIs(host, "itau.b.br")) { return "DIRECT"; } // Fornecedores, softwares, etc if(dnsDomainIs(host, "hexagonsmartlicensing.com")) { return "DIRECT"; } if(dnsDomainIs(host, "hexagonppm.com")) { return "DIRECT"; } if(dnsDomainIs(host, "servicebus.windows.net")) { return "DIRECT"; } // Else return "PROXY proxy.a1.ind.br:3128"; }