57 lines
1.8 KiB
JavaScript
57 lines
1.8 KiB
JavaScript
function FindProxyForURL(url, host)
|
|
{
|
|
// Proxy Konfig Start
|
|
|
|
// variable strings to return
|
|
var proxy_yes = "PROXY 130.35.0.130:8080";
|
|
var proxy_no = "DIRECT";
|
|
|
|
// Keinen Proxy nutzen für:
|
|
// ... lokale Maschine
|
|
if (shExpMatch(url, "*localhost*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*127.0.0.1*")) { return proxy_no; }
|
|
|
|
// ... ICF Netze
|
|
if (shExpMatch(url, "*10.10.*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*130.35.0.*")) { return proxy_no; }
|
|
|
|
// ... ICF Webseiten
|
|
if (shExpMatch(url, "*mvicfsp001*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*faqicfsp001*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*qmhandbuch*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*monicfsp01*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*sammax*")) { return proxy_no; }
|
|
|
|
// ... Bayerische Börse
|
|
if (shExpMatch(url, "*170.50.4.*")) { return proxy_no; }
|
|
|
|
// ... Niederlande
|
|
if (shExpMatch(url, "*170.60.1.*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*170.60.2.*")) { return proxy_no; }
|
|
|
|
// ... Börse
|
|
if (shExpMatch(url, "*170.11.1.*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*170.40.1.*")) { return proxy_no; }
|
|
|
|
// ... HiPath
|
|
if (shExpMatch(url, "*170.19.1.31*")) { return proxy_no; }
|
|
|
|
// ... Telekurs
|
|
if (shExpMatch(url, "*tkflink*")) { return proxy_no; }
|
|
|
|
// privat
|
|
if (shExpMatch(url, "*wisniewski*")) { return proxy_no; }
|
|
if (shExpMatch(url, "*inspiron*")) { return proxy_no; }
|
|
|
|
// Proxy nutzen wenn im ICF Netz
|
|
if (isInNet(myIpAddress(), "130.35.0.0", "255.255.255.0"))
|
|
{ return "PROXY 130.35.0.130:8080"; }
|
|
|
|
if (isInNet(myIpAddress(), "170.40.1.0", "255.255.255.0"))
|
|
{ return "PROXY 130.35.0.130:8080"; }
|
|
|
|
return "DIRECT";
|
|
|
|
// Proxy Konfig Ende
|
|
}
|