# proxy.pac and wpad.dat with a security service edge (SSE)

Source: https://findproxyforurl.net/generate/sse/ · last updated 2026-11-24

A security service edge (SSE) is a security proxy that a vendor runs in the cloud, such as Zscaler, Netskope, Skyhigh Security, Cloudflare Gateway or Palo Alto Networks' Prisma Access. Pick yours below, answer a few questions and download a PAC file that follows the vendor's own documentation and this site's rules. Each builder links to the checker with its vendor pack preselected. Below the builders, this page explains when a PAC file is the right way to reach an SSE and how it works together with the vendor's agent.

## When is a PAC file the right way to reach an SSE?

A PAC file is the right way when the device cannot run the vendor's agent, or when traffic already reaches the vendor from a site.
The agent is the vendor's software on each device; it catches traffic at the network level and sends it
to the vendor. A PAC file (proxy auto-configuration file) only tells programs that read it which proxy to
use. That makes a PAC file the right tool in these cases:

- On devices where no agent can be installed, such as servers, kiosks, virtual desktops, guest devices and the
  laptops of other companies. The PAC address is a setting, so nothing has to be installed.
- In offices whose traffic already goes to the vendor through a tunnel, and where the browsers should use
  the vendor's proxy explicitly, for example to sign users in.
- During a move from your own proxies to an SSE, when one file sends some sites or some groups of users to the
  old proxy and the rest to the new one.

On company laptops that work from anywhere, the agent is usually the better way, because it covers every
program and works outside the office too. The page
[should you still use a PAC file](https://findproxyforurl.net/articles/should-you-still-use-a-pac-file/) compares the options and
their weaknesses in full.

## How does a PAC file work together with the vendor's agent?

The PAC file decides first, and the agent decides afterwards. The browser or the operating system runs
the PAC file and opens a connection, either to the proxy or directly. The agent then sees that connection
at the network level and applies its own rules. So a `DIRECT` in the PAC file means "not through this
proxy", not "not through the agent". A site that must really bypass the SSE needs an exception in the
agent's own configuration as well ([PAC-B014](https://findproxyforurl.net/rules/agent-intercepts-pac-direct-traffic/)).

Some agents also use PAC files of their own. Zscaler Client Connector, for example, has two, with
different jobs, and mixing them up breaks one of them; the
[Zscaler PAC file checklist](https://findproxyforurl.net/articles/zscaler-pac-file-checklist/) explains them. Keep one list of
exceptions per purpose and change the PAC file and the agent together, so that they do not drift apart.

The checker shows this interaction: choose your vendor under *Environment*, and its pack reports the
`DIRECT` rules that the agent will still catch.

## Can you use wpad.dat with an SSE?

Inside your own network you can, but not on laptops that leave it. WPAD (Web Proxy Auto-Discovery) lets a
client find its PAC file without any setting: it asks DHCP or looks up a host called `wpad` in DNS, and
then fetches `http://wpad.<your domain>/wpad.dat`. That file can send traffic to the vendor's cloud proxy
like any other PAC file. Three things are different from a PAC address that you configure:

- The file lives on your own server, because the DNS lookup always ends at a host in your domain.
  Features that need the vendor to host the file are then missing. Zscaler's `${GATEWAY}` variables, for
  example, are filled in only in files that Zscaler hosts; on your own server you have to name the
  gateways directly, which Zscaler advises against ([PAC-K016](https://findproxyforurl.net/rules/zscaler-literal-gateway-address/)).
- The file comes over plain HTTP, so anyone who can change traffic on the way can change where your
  traffic goes.
- Outside your network, someone else answers. A laptop at home or in a hotel asks that network for
  `wpad`, and that network decides which file the laptop gets, if any.

Use WPAD only for devices that stay in your network and cannot be configured, such as guest devices. The
[WPAD page](https://findproxyforurl.net/wpad/) explains the risks and how to reduce them, and the
[wpad.dat generator](https://findproxyforurl.net/generate/wpad-dat/) builds the file.

## What should go direct?

Send direct only what the cloud proxy cannot reach or must not see, and what the vendor says must bypass it. Each
builder above adds its vendor's list; these are the parts that every SSE PAC file needs:

- Plain host names and private addresses go direct, because the cloud proxy cannot reach your internal servers, and the
  agent's exception for local traffic does not help once a request has been sent to the proxy. Send them
  `DIRECT` at the top of the file, without DNS lookups
  ([PAC-C026](https://findproxyforurl.net/rules/sse-local-traffic-not-bypassed/), [DNS in PAC files](https://findproxyforurl.net/articles/dns-in-pac-files/)).
- Your internal domains go direct for the same reason.
- The identity provider goes direct where the vendor requires it. When the proxy asks users to sign in, the
  sign-in page must not depend on the proxy itself.
- The vendor's own sign-in and authentication services go direct where the vendor lists them, as Palo Alto
  Networks does for Prisma Access.
- FTP and other addresses that are not `http` or `https` go direct, because cloud proxies accept only web traffic
  ([PAC-C023](https://findproxyforurl.net/rules/sse-proxy-for-non-http-schemes/)).
- An on-premises gateway itself goes direct, if you run one, because its block pages and sign-in pages come from
  the gateway.

What should not go direct in the file is a list of popular cloud services or streaming sites, sent around
the proxy to save bandwidth. The builders leave such lists out on purpose: they belong in the proxy's
policy or in the agent's configuration, where they are managed in one place for every device.

Do you run your own proxies instead? The [PAC file generator](https://findproxyforurl.net/generate/) builds a file for them, with a
comment on every entry.



- [Cloudflare Gateway PAC builder](https://findproxyforurl.net/generate/sse/cloudflare/index.md): Cloudflare’s templates are a good base: correct RFC 1918 masks, loopback as a /8, lower-cased host, IdP bypass first. Two things are changed here. The private-network test is guarded by an IP-literal check instead of calling dnsResolve(host) for every request (one DNS dependency is qualitatively different from none), and the *.local bypass is optional because some networks still use .local as an internal DNS suffix.
One keyword and one port decide whether the endpoint answers The pack list further down names each check. These are the reasons behind the ones that break a Cloudflare Gateway PAC file most often (source: doc, Cloudflare documentation as cited on each rule page, October 2026):

- [Netskope explicit proxy PAC builder](https://findproxyforurl.net/generate/sse/netskope/index.md): Netskope’s sample template normalises the URL and host, sends plain hostnames direct, leaves a commented block for IdP and other exceptions and returns PROXY eproxy-<tenant>:8081 for http and https URLs. This builder fills in the exception blocks and keeps the rest.
Small details decide whether Netskope sees the traffic The pack list further down names each check. These are the reasons behind the ones that break a Netskope PAC file most often (source: doc, Netskope documentation as cited on each rule page, October 2026):

- [Prisma Access Explicit Proxy PAC builder](https://findproxyforurl.net/generate/sse/prisma/index.md): Palo Alto Networks’ sample PAC bypasses localhost and private addresses, FTP, the SAML provider and the Authentication Cache Service, then forwards to the proxy on port 8080. This builder keeps that order, matches private ranges without any DNS lookup and adds the GlobalProtect domains when you select a coexistence mode.

- [Skyhigh Security PAC builder](https://findproxyforurl.net/generate/sse/skyhigh/index.md): Skyhigh documents the cloud proxy as c<customer-id>.wgcs.skyhigh.cloud on port 80 or 8080, and for an on-premises Secure Web Gateway it asks that traffic to the gateway itself is never proxied, because block pages, authentication redirects and injected files come from the appliance. Both are built in here.

- [Zscaler PAC builder](https://findproxyforurl.net/generate/sse/zscaler/index.md): The output follows Zscaler’s own PAC guidance (variables instead of addresses, primary plus secondary gateway, FTP and internal traffic direct) and this site’s rules on top: no DNS lookup on the hot path, host lower-cased, a commented default route. Host the file on the Zscaler cloud, otherwise the ${...} variables stay literal.

