Last Updated: February 25, 2016
· purekrome

The worlds most awesome proxy pac file!

A simple Proxy auto-configuration file.

Goal: Use the proxy (if it's up/working) or the direct internet (aka your Gateway) for retrieving data


the domain name (where you're trying to retrieve data from) resolves back to || localhost. If it's the later, then don't use the proxy (obviously) and go direct (which means, you hit your own machine):

var direct = "DIRECT";
var proxy = "PROXY; " + direct;

function FindProxyForURL(url, host)
    if (dnsResolve(host) == "")
        // Avoid using proxy for any domain that is resolved to be *localhost*.
        // Eg.
        return direct;
        return proxy;