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.

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.
Related links
Related reading
View all- Advanced Threat Protection (ATP) Advanced Threat Protection (ATP) in an SWG refers to layered detection designed to stop sophisticated, evasive, or previously unknown …
- Agent-Based SWG Agent-based SWG uses an endpoint client (Windows/macOS/mobile) to route web traffic into the secure web gateway and apply policy based on …
- Anti-Phishing Protection Anti-phishing protection in a secure web gateway focuses on detecting and blocking credential theft attempts delivered via web links, fake …
- CASB Integration CASB integration connects a secure web gateway with Cloud Access Security Broker capabilities to control SaaS usage, enforce tenant …
- Category-Based Web Control Category-based web control lets an SWG apply policy by grouping sites into categories such as “business,” “malware,” …

