Sep 05 13 2:00 am
function FindProxyForURL(url, host)
{
if ((url.substring(0, 5) == "http:") ||
(url.substring(0, 4) == "ftp:") ||
(url.substring(0, 6) == "https:"))
{
return "PROXY 192.168.0.1:80;DIRECT";
}
else if (isInNet(myIpAddress(),"192.168.1.0","255.255.255.0"))
{
return "PROXY 192.168.1.1:80;DIRECT";
}
}
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
isInNet(host, "10.0.0.0", "255.0.0.0") ||
isInNet(host, "172.16.0.0", "255.255.224.0") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
isInNet(host, "127.0.0.0", "255.0.0.0"))
return "DIRECT";
if ((url.substring(0, 5) == "http:") ||
(url.substring(0, 4) == "ftp:") ||
(url.substring(0, 6) == "https:"))
return "PROXY 192.168.0.1:80;DIRECT";
if (isInNet(myIpAddress(),"192.160.1.0","255.255.255.0"))
return "PROXY 192.168.1.1:80;DIRECT";
} ;
Sep 05 13 5:36 pm
function FindProxyForURL(url, host)
{
// DEFAULT RULE: All other traffic, use below proxies.
return "PROXY 192.168.0.1:80;DIRECT";
// If the IP address of the local machine is within a defined
// subnet, send to a specific proxy.
if (isInNet(myIpAddress(),"192.160.1.0","255.255.255.0"))
return "PROXY 192.168.1.1:80;DIRECT";
}
Sep 06 13 9:47 am
Sep 17 13 5:53 pm
function FindProxyForURL(url, host)
{
if (isInNet(host, "192.168.0.0", "255.255.255.0"))
{
return "PROXY 192.168.0.1:80;DIRECT";
}
if (isInNet(host, "192.168.1.0", "255.255.255.0"))
{
return "PROXY 192.168.1.1:80;DIRECT";
}
if (isPlainHostName(host) ||
isInNet(host, "10.0.0.0", "255.0.0.0") ||
isInNet(host, "172.16.0.0", "255.255.224.0") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
isInNet(host, "127.0.0.0", "255.0.0.0"))
{
return "DIRECT";
}
else
return "PROXY 192.168.0.1:80;DIRECT";
}
Sep 18 13 9:40 am