# PAC loaded from a file path or SMB share

Source: https://findproxyforurl.net/rules/pac-from-file-share/ · last updated 2026-10-13

Rule PAC-D009 (`pac-from-file-share`), severity medium, category: Delivery (HTTP headers).

A PAC on a file share is executable policy stored where many people can write. Access control on the share, not on the proxy team, now decides who controls routing. Chromium also no longer accepts file-scheme PAC URLs.

## Why it matters

The PAC body is code that every client runs. On an SMB share or a local path its integrity
depends on NTFS/share permissions that are rarely reviewed with that in mind. Chromium
stopped supporting `file://` PAC URLs years ago, and Windows (WinHTTP) did not load a
`file://` PAC URL in the lab either (2026-10-11), so the setting silently does nothing for
those clients while other programs may still use it. Serve the PAC from a web server
with a restricted document root, over https, with fetch logging (PAC-D001).


## How to fix

Move the PAC to an https web server with write access restricted to the proxy team.

## Bad

```js
# AutoConfigURL
file://fileserver.corp.example/public/wpad.dat
```

## Good

```js
# AutoConfigURL
https://pac.corp.example/proxy.pac
```

## Engine behaviour

- chromium: file: PAC URLs are not supported; a redirect to a file: URL is refused as well. (source: code, verified 2026-10-13)
- winhttp: A file:// PAC URL was rejected (error 12006, an unrecognised URL); no PAC was loaded. (source: lab, verified 2026-10-11)
