Cisco Web Security Appliance

What is a PAC file and where is it located on WSA?

Document ID: 118082

Updated: Jul 25, 2014

Contributed by Erick Mechler and Siddharth Rajpathak, Cisco TAC Engineers.



What is a PAC file? Where can I host a PAC file on Cisco Web Security appliance?

Environment: Cisco Web Security appliance (WSA)

This Knowledge Base article references software which is not maintained or supported by Cisco. The information is provided as a courtesy for your convenience. For further assistance, please contact the software vendor.

A PAC, short for proxy auto-confg, file is a language to inform web browsers how to leverage proxies on their network.  Netscape owns the definition of the PAC file format. More details on this can be found at

Microsoft browsers also support PAC file auto-detection, which is outlined at

We can host the PAC file on WSA under GUI > Security Services > PAC file hosting. By default, the proxy PAC file would be hosted on port 9001.

When using WSA to host PAC files, by default, we need to point the browser to the following location


If the default port is changed in the PAC file hosting settings, then we would need to change the port accordingly in the above URL.

How it works:

The PAC file checks the local IP subnet address of the PC and then makes a decision based on IF / ELSE statement/s. If the PC is located in a subnet that matches, a proxy server is used. If the PC is on any other subnet, a direct connection is used instead of the proxy.

function FindProxyForURL(url, host)
         if (isInNet(myIpAddress(), "", ""))
                 return "PROXY";
                 return "DIRECT";

In the example, we check that the host is in the subnet. If it is, then we tell the browser to use a proxy at IP address, using port 8080. We may need to change the subnet, subnet mask and proxy address/port according to the LAN configuration.

Updated: Jul 25, 2014
Document ID: 118082