0% found this document useful (0 votes)
177 views

Cplocal TMP

The document contains JavaScript functions for determining a proxy configuration based on the IP address of the host. It first checks if the host IP is within certain private IP ranges or local and returns "DIRECT" if so. Otherwise, it returns a hardcoded proxy configuration of "PROXY 172.20.46.200:8080".

Uploaded by

michel_info13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views

Cplocal TMP

The document contains JavaScript functions for determining a proxy configuration based on the IP address of the host. It first checks if the host IP is within certain private IP ranges or local and returns "DIRECT" if so. Otherwise, it returns a hardcoded proxy configuration of "PROXY 172.20.46.200:8080".

Uploaded by

michel_info13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

function CPSCFindProxyForURL (url, host)

{
return "PROXY 172.20.46.200:8080";
}
function FindProxyForURL (url, host)
{
var resolvedIP ;
if (isResolvable(host))
resolvedIP = dnsResolve(host);
else
return CPSCFindProxyForURL(url, host);
if (

isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,
isInNet(resolvedIP,

"10.3.0.0", "255.255.0.0") ||
"10.11.0.0", "255.255.0.0")
"10.14.0.0", "255.255.255.0")
"10.12.0.0", "255.254.0.0")
"10.15.0.0", "255.255.0.0")
"10.30.0.0", "255.255.0.0")
"10.32.0.0", "255.255.0.0")
"10.35.48.0", "255.255.255.0")
"10.35.51.0", "255.255.255.0")
"10.50.0.0", "255.254.0.0")
"10.52.0.0", "255.252.0.0")
"10.56.0.0", "255.248.0.0")
"10.68.0.0", "255.255.0.0")
"10.64.0.0", "255.252.0.0")
"10.70.0.0", "255.255.0.0")
"10.200.0.0", "255.255.0.0")
"161.148.2.129", "255.255.255.255")

||
||
||
||
||
||
||
||
||
||
||
||
||
||
||

||
isInNet(resolvedIP, "161.148.2.130", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.16.22", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.16.20", "255.255.255.254")
||
isInNet(resolvedIP, "161.148.24.16", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.24.114", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.24.203", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.172.33", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.172.34", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.172.36", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.172.38", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.172.96", "255.255.255.252")
||
isInNet(resolvedIP, "161.148.173.86", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.173.170", "255.255.255.255")
||
isInNet(resolvedIP, "161.148.173.200", "255.255.255.255")

||
isInNet(resolvedIP, "192.168.10.0", "255.255.255.0")
||
isInNet(resolvedIP, "192.168.100.9", "255.255.255.255")
||
isInNet(resolvedIP, "192.168.100.10", "255.255.255.254")
||
isInNet(resolvedIP, "200.198.204.196", "255.255.255.255")
||
isInNet(resolvedIP, "200.198.211.61", "255.255.255.255")
||
isInNet(resolvedIP, "200.198.211.173", "255.255.255.255")
||
isInNet(resolvedIP, "200.198.217.178", "255.255.255.255")
||
isInNet(resolvedIP, "200.198.225.11", "255.255.255.255")
||
(resolvedIP== "<local>")
(host=="<local>")
||
(url=="<local>"))
return "DIRECT";

||

else
return CPSCFindProxyForURL(url, host);
}
/*#### Prx Conf Backup Start ####
#bu# Manual Proxy: #bu# TRUE
#bu# Proxy Server Address: #bu# 172.20.46.200
#bu# Proxy Server Port: #bu# 8080
#### Prx Conf Backup End ####*/

You might also like