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";
}
// Now do the list of IP-restricted services; they go through the proxy
if (shExpMatch(host, "*eb.com") || shExpMatch(host, "*oclc.org")) {
return "PROXY proxy1.college.edu:4545; PROXY proxy2.college.edu:4545";
}
// Otherwise, go directly to the origin server
return "DIRECT";
}