LITA Regional Institute: Proxy Web Servers and AuthenticationProxy Web Servers and Authentication > Local PC Setup > Proxy Auto-Configuration Files
function FindProxyForURL(url,host) {
// If the host requested on the URL line is not a FQDN
// (eg, it is 'www'), then don't proxy.
if (isPlainHostName(host)) {
return "DIRECT";
}
// Make OPAC stations go through Proxy Server
if (myIpAddress() == "10.243.20.242" ||
myIpAddress() == "10.243.21.210" ||
myIpAddress() == "10.243.21.241" ||
myIpAddress() == "10.243.22.13" ||
myIpAddress() == "10.243.22.19" ||
myIpAddress() == "10.243.22.35" ||
myIpAddress() == "10.243.22.41" ||
myIpAddress() == "10.243.22.182") {
return "PROXY proxy.college.edu:4545";
}
// Everyone else can go directly to the origin server
return "DIRECT";
}