Datacentre Support Reference Guides

Visit our online shop for ALL your parts, components, laptops, electronics and gadgets
 

PAC file example for browsers
 

 
 

function FindProxyForURL(url, host)
{
        /* SPECIAL CASES FOR NON-BALANCED ROUTING */

        // Direct connections to non-FQDN hosts
        if (isPlainHostName(host) ||
        (host == "127.0.0.1") ||
        (host == "www.pcs-computing.com") ||
        (host == "pcs-computing.com") ||
        (shExpMatch(host, "*.pcs-intranet.com")) ||
        (shExpMatch(host, "90.0.0.*")) ||
        (shExpMatch(host, "10.*"))) {
          return "DIRECT"
        } else {
          return "PROXY pcsproxy.pcs-computing.com:8080"
        }
}
 

What does it all mean?
This reads as:

If the request is for a non FQDN (hostname only) or localhost or www.pcs-computing.com or pcs-computing.com or <anything>.pcs-intranet.com or is a host in the network 90.0.0.1 - 90.0.0.255 or is a host in the network 10.0.0.1 - 10.255.255.255 then go DIRECT else go via the proxy using port 8080

Hope that helps.

Don't forget to substitute your own networks, hosts, domains and proxy.

If you need any help from a PCS-Computing IT Security Consultant (BCCPA/BCCPP)
please get in touch. Consultancy charges from £350/day.

We recommend

for ALL your gateway protection.