forward index back CWRUnet Web Proxy Services Overview
Innovative User's Group; 2-5 May 1998

A simple PAC file

  // Generated on: Thu Apr 30 00:00:04 1998

  function FindProxyForURL(url,host) {
   // If the host requested on the URL line is 
   // not a FQDN (eg, it is 'www'), then don't
   // proxy.  Why we do this?  I don't know...
   // everyone else seems to.
    if (isPlainHostName(host)) {
      return "DIRECT";
    }
   
   // Now do the list of IP-restricted domains
    if (shExpMatch(host, "*eb.com")) {
      return "PROXY sr71.lit.cwru.edu:5710; 
              PROXY sr71.lit.cwru.edu:1080;";
    }
    
    return "DIRECT";
  }