Code:
function FindProxyForURL(url, host)
{
if (isPlainHostName(host)
|| isInNet(host, "123.123.123.0", "255.255.255.0")
|| isInNet(host, "192.168.211.0", "255.255.255.0")
|| isInNet(host, "172.17.0.0", "255.255.0.0")
|| isInNet(host, "172.18.0.0", "255.255.0.0")
|| dnsDomainIs(host, ".yourschool.edu"))
return "DIRECT";
if (isInNet(myIpAddress(), "172.16.0.0", "255.255.0.0")
|| isInNet(myIpAddress(), "172.17.0.0", "255.255.0.0")
|| isInNet(myIpAddress(), "172.18.0.0", "255.255.0.0")
|| isInNet(myIpAddress(), "172.20.0.0", "255.255.252.0")
|| isInNet(myIpAddress(), "172.24.0.0", "255.255.252.0")
|| isInNet(myIpAddress(), "172.31.0.0", "255.255.0.0")
|| isInNet(myIpAddress(), "10.10.0.0", "255.255.248.0")
|| isInNet(myIpAddress(), "10.10.8.0", "255.255.252.0")
|| isInNet(myIpAddress(), "10.20.0.0", "255.255.252.0")
|| isInNet(myIpAddress(), "10.20.4.0", "255.255.252.0")
|| isInNet(myIpAddress(), "10.22.0.0", "255.255.255.0")
|| isInNet(myIpAddress(), "10.21.0.0", "255.255.255.0")
|| isInNet(myIpAddress(), "10.24.0.0", "255.255.224.0")
|| isInNet(myIpAddress(), "10.24.60.0", "255.255.255.0")
|| isInNet(myIpAddress(), "10.24.61.0", "255.255.255.0")
|| isInNet(myIpAddress(), "10.24.62.0", "255.255.255.0")
|| isInNet(myIpAddress(), "10.25.0.0", "255.255.252.0")
|| isInNet(myIpAddress(), "10.50.0.0", "255.255.224.0")
|| isInNet(myIpAddress(), "10.51.0.0", "255.255.224.0")
|| isInNet(myIpAddress(), "10.52.0.0", "255.255.224.0")
|| isInNet(myIpAddress(), "192.168.212.0", "255.255.255.0")
|| isInNet(myIpAddress(), "192.168.192.0", "255.255.255.0"))
return "PROXY 123.123.123.123:80";
return "DIRECT";
}