Simple PAC File PDF Print E-mail

For this example, we will assume that an organization uses company.net as their domain. They have three hosts (www, webmail and portal) in this domain and one subdomain (public.company.net) that are on the Internet. The rest of the domain is internal and shouldn’t be proxied.

 function FindProxyForURL(url, host) {
 
// First start with the exceptions that need to be proxied
 
if ((host == "www.company.net") ||
    (host == "webmail.company.net") ||
    (host == "portal.company.net") ||
    (dnsDomainIs(host, ".public.company.net"))) {
         return "PROXY proxy1.company.net:8000";
}
 
// Next, we want to send all traffic to company.net browser direct
 
if (dnsDomainIs(host, ".company.net")) {
       return "DIRECT";
}
 
// Default return condition is the proxy, since it’s assumed that everything
// else is on the Internet.
 
return "PROXY proxy1.company.net:8000";
 
} // End of function
 
 
Make Text Bigger Make Text Smaller Reset Text Size
Home Simple PAC File

Main Menu


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/jcurnow/proxypacfiles.com/proxypac/libraries/joomla/cache/handler/callback.php on line 99

Writing PAC Files


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/jcurnow/proxypacfiles.com/proxypac/libraries/joomla/cache/handler/callback.php on line 99

Sample PAC Files


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/jcurnow/proxypacfiles.com/proxypac/libraries/joomla/cache/handler/callback.php on line 99

References and Tools


Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /home/jcurnow/proxypacfiles.com/proxypac/libraries/joomla/cache/handler/callback.php on line 99

Warning: Creating default object from empty value in /home/jcurnow/proxypacfiles.com/proxypac/modules/mod_stats/helper.php on line 106
Content View Hits : 1072742
The Practical Proxy PAC File Guide