-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
24 lines (17 loc) · 882 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: PAC
slug: Glossary/PAC
page-type: glossary-definition
---
{{GlossarySidebar}}
A Proxy Auto-Configuration file (**PAC file**) is a file which contains a function, `FindProxyForURL()`, which is used by the browser to determine whether requests (including HTTP, HTTPS, and FTP) should go directly to the destination or if they need to be forwarded through a web proxy server.
```js
function FindProxyForURL(url, host) {
// …
}
ret = FindProxyForURL(url, host);
```
See [Proxy Auto-Configuration (PAC) file](/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file) for details about how these are used and how to create new ones.
## See also
- [PAC](https://en.wikipedia.org/wiki/Proxy_auto-config) on Wikipedia
- [Proxy Auto-Configuration file](/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file) on MDN