function FindProxyForURL(url, host) {
host = host.toLowerCase();
if (isPlainHostName(host) || dnsDomainIs(host, ".corp.example")) {
return "DIRECT";
}
return "PROXY proxy.corp.example:8080";
}Tab inserts spaces after you click into the editor; press Escape, then Tab, to move on.
Files up to 1 MiB (the largest PAC browsers load) can be rated. Extremely dense files that exceed the rating server's limits get the basic checks only.
Your PAC is checked in your browser. For the rating, only anonymised facts about the code are sent (which functions it calls with which patterns, what it returns): comments removed, your organisation's domains and IPs replaced. Your original file is never sent or stored.
The full report lists every finding with its line and a fix. Before anything is uploaded you see the anonymised file and can change it or cancel.
Environment: myIpAddress, DNS, date and time, vendor
Empty = now, in your browser's time zone.
DNS answers
intranet.corp.example=10.1.2.3
Delivery: grade how the file is served
Only the scheme, a common file name (proxy.pac, wpad.dat; otherwise just the extension) and whether the host is wpad are sent; file paths and \\server\share are accepted.
Paste the headers; the site never fetches the URL itself.