Skip to content

secure-web-gateway-glossary

Proxy Auto-Config (PAC) File

A Proxy Auto-Config (PAC) file is a script (usually JavaScript) that tells a browser which proxy to use for specific destinations.

1 min read
Proxy Auto-Config (PAC) File

A Proxy Auto-Config (PAC) file is a script (usually JavaScript) that tells a browser which proxy to use for specific destinations. PAC files are a classic way to steer traffic into an on-prem or cloud secure web gateway without installing a full endpoint agent, making them useful in controlled environments like corporate desktops or VDI.

With PAC-based steering, organizations can route only web traffic to the SWG while allowing direct connections for internal domains, trusted services, or latency-sensitive apps. This selective routing helps reduce SWG load and improves user experience. PAC files can also include fallback logic for high availability, choosing different proxy endpoints if one is unreachable.

However, PAC files can be fragile if not managed carefully: misconfigurations can create bypass paths, and roaming users may experience failures if the PAC URL is not reachable off-network. Many modern SWG deployments complement PAC with agents or device management to ensure reliable, policy-consistent traffic steering.