function FindProxyForURL(url,host) { if (isInNet(myIpAddress(), "172.16.0.0", "255.255.0.0")) return "PROXY pedago.local:3128"; else if (dnsDomainIs(host, ".ader.gouv.fr")) return "PROXY 192.168.74.130:8080"; //ajout Phil acces .admission-postbac.fr //else if (dnsDomainIs(host, ".admission-postbac.fr")) // return "PROXY 192.168.74.130:8080"; // ajout Nico Demact //else if ((shExpMatch(url, "http://horizon.in.orion.education.fr*") // || (shExpMatch(url, "http://hrzdacbs.in.ac-paris.fr*")) // return "DIRECT"; else if ((dnsDomainIs(host, ".in.orion.education.fr")) || (dnsDomainIs(host, "bv.ac-guadeloupe.fr"))) return "PROXY 192.168.74.130:8080"; // r�gle d�comment� le 15-09-2011 pour acc�s � sofa else if (dnsDomainIs(host, ".in.ac-versailles.fr")) return "PROXY 192.168.74.130:8080"; else if (url.substring(0,6) == "https:") // return "PROXY admin.local:3128"; return "DIRECT"; // return "PROXY 192.168.74.130:8080"; else if (shExpMatch(url,"*1098*")) return "DIRECT"; else if (localHostOrDomainIs(host,"admsco.in.ac-creteil.fr")) return "DIRECT"; else if (shExpMatch(url,"*8080*")) return "DIRECT"; else if (shExpMatch(url,"*127.0.0.1*")) return "DIRECT"; else if (dnsDomainIs(host, "signa.orion.education.fr")) return "DIRECT"; else if (dnsDomainIs(host, "pennarben.in.ac-creteil.fr")) return "DIRECT"; else if (shExpMatch (url,"http://tage.ac-creteil.fr:81/*")) return "DIRECT"; /* else if ((shExpMatch (url,"http://gospel.in.orion.education.fr:9087/hraccess*")) && isInNet(myIpAddress(), "10.93.126.0","255.255.255.128")) return "DIRECT"; else if ((shExpMatch (url,"http://gospel.in.orion.education.fr:9087/hraccess*")) && isInNet(myIpAddress(), "10.77.48.0","255.255.255.128")) return "PROXY 192.168.74.130:8080"; else if ((shExpMatch (url,"http://gospel.in.orion.education.fr:9087/hraccess*")) && isInNet(myIpAddress(), "10.94.27.0","255.255.255.128")) return "DIRECT"; else if ((shExpMatch (url,"http://gospeldadsu.in.orion.education.fr:9091/hraccess*")) && isInNet(myIpAddress(), "10.93.126.0","255.255.255.128")) return "DIRECT"; else if ((shExpMatch (url,"http://gospeldadsu.in.orion.education.fr:9091/hraccess*")) && isInNet(myIpAddress(), "10.94.27.0","255.255.255.128")) return "DIRECT"; */ else if ((shExpMatch (url,"http://web1-eple.in.ac-orleans-tours.fr:9090/hraccess*")) && isInNet(myIpAddress(), "10.93.126.0","255.255.255.128")) return "DIRECT"; else if ((shExpMatch (url,"http://web1-eple.in.ac-orleans-tours.fr:9090/hraccess*")) && isInNet(myIpAddress(), "10.77.48.0","255.255.255.128")) return "PROXY 192.168.74.130:8080"; else if ((shExpMatch (url,"http://web1-eple.in.ac-orleans-tours.fr:9090/hraccess*")) && isInNet(myIpAddress(), "10.94.27.0","255.255.255.128")) return "PROXY 192.168.74.130:8080"; else if ((shExpMatch (url,"http://sconetwli.in.ac-creteil.fr:7500/wliconsole*")) && isInNet(myIpAddress(), "10.94.6.0","255.255.255.0")) return "DIRECT"; else if ((dnsDomainIs(host, ".in.ac-creteil.fr")) || (dnsDomainIs(host, "webmel.ac-creteil.fr")) || (dnsDomainIs(host, "etab.ac-orleans-tours.fr")) || (dnsDomainIs(host, "cecoia.ac-creteil.fr")) || (dnsDomainIs(host, "siam.ac-creteil.fr")) || (dnsDomainIs(host, ".adc.education.fr")) || (dnsDomainIs(host, "in.ac-versailles.fr")) || (dnsDomainIs(host, ".pleiade.education.fr")) || (dnsDomainIs(host, "in.adc.education.fr")) || (dnsDomainIs(host, "intra.adc.education.fr")) || (dnsDomainIs(host, "gospel.etab.ac-creteil.fr")) || (dnsDomainIs(host, "diff.ac-paris.fr")) || (dnsDomainIs(host, "diff.ac-nancy-metz.fr")) || (dnsDomainIs(host, "diff.ac-rennes.fr")) || (dnsDomainIs(host, "diff.ac-orleans-tours.fr")) || (dnsDomainIs(host, "diff.ac-dijon.fr")) || (dnsDomainIs(host, "diff.ac-toulouse.fr")) || (dnsDomainIs(host, "webnet.ac-toulouse.fr")) || (dnsDomainIs(host, "diff.ac-montpellier.fr")) || (dnsDomainIs(host, "ulysse.socrates-leonardo.fr")) || (dnsDomainIs(host, "europass-france.org")) || (dnsDomainIs(host, ".scolastance.com")) // || (dnsDomainIs(host, ".finances.ader.gouv.fr")) || (dnsDomainIs(host, ".orion.education.fr"))) return "PROXY 192.168.74.130:8080"; // ajout phil pour sco et pronote_cas le 14 05 2012 else if (shExpMatch (url,"http://sco*")) return "DIRECT"; else if (isInNet(myIpAddress(), "10.93.0.0","255.255.0.0") || isInNet(myIpAddress(), "10.94.0.0","255.255.0.0") || isInNet(myIpAddress(), "10.77.0.0","255.255.0.0")) return "PROXY admin.local:3128"; }