How to write proxy PAC file
Overview Proxy Auto-Configuration (PAC) is a method used by Web browsers to select a proxy for a given URL. The method for choosing a proxy is written as a JavaScript function contained in a PAC file. This file can be hosted locally or on a network. Browsers can be configured to use the file manually.
How PAC Files Work Direct all traffic through the first proxy. If it is unreachable, use the second proxy.