{"json_modified": "2016-08-04T01:13:43.038862", "uuid": "775dece5-e275-47b2-8d79-444058a42dfe", "title": "Proxy Auto-Configuration (PAC) file", "url": "/en-US/docs/Mozilla/Projects/Necko/Proxy_Auto-Configuration_(PAC)_file", "tags": ["Necko", "PAC", "Networking"], "translations": [], "modified": "2016-08-04T01:13:43", "label": "Proxy Auto-Configuration (PAC) file", "localization_tags": [], "locale": "en-US", "id": 177049, "last_edit": "2016-08-04T01:13:41", "summary": "A Proxy Auto-Configuration (PAC) file is a JavaScript function that determines whether web browser requests (HTTP, HTTPS, and FTP) go directly to the destination or are forwarded to a web proxy server. The JavaScript function contained in the PAC file defines the function:", "sections": [{"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Description", "title": "Description"}, {"id": "Return_value_format", "title": "Return value format"}, {"id": "Examples", "title": "Examples"}, {"id": "Predefined_functions_and_environment", "title": "Predefined functions and environment"}, {"id": "isPlainHostName()_2", "title": null}, {"id": "Syntax_2", "title": "Syntax"}, {"id": "Parameters_2", "title": "Parameters"}, {"id": "Description_2", "title": "Description"}, {"id": "Examples_2", "title": "Examples"}, {"id": "dnsDomainIs()", "title": null}, {"id": "Syntax_3", "title": "Syntax"}, {"id": "Parameters_3", "title": "Parameters"}, {"id": "Description_3", "title": "Description"}, {"id": "Examples_3", "title": "Examples"}, {"id": "localHostOrDomainIs()", "title": null}, {"id": "Syntax_4", "title": "Syntax"}, {"id": "Parameters_4", "title": "Parameters"}, {"id": "Description_4", "title": "Description"}, {"id": "Examples_4", "title": "Examples"}, {"id": "isResolvable()", "title": null}, {"id": "Syntax_5", "title": "Syntax"}, {"id": "Parameters_5", "title": "Parameters"}, {"id": "Examples_5", "title": "Examples:"}, {"id": "isInNet()", "title": null}, {"id": "Syntax_6", "title": "Syntax"}, {"id": "Parameters_6", "title": "Parameters"}, {"id": "Examples_6", "title": "Examples:"}, {"id": "dnsResolve()", "title": null}, {"id": "Parameters_7", "title": "Parameters"}, {"id": "Example", "title": "Example"}, {"id": "convert_addr()_2", "title": null}, {"id": "Syntax_7", "title": "Syntax"}, {"id": "Parameters_8", "title": "Parameters"}, {"id": "Example_2", "title": "Example"}, {"id": "myIpAddress()_2", "title": null}, {"id": "Syntax_8", "title": "Syntax"}, {"id": "Parameters_9", "title": "Parameters"}, {"id": "Example_3", "title": "Example"}, {"id": "dnsDomainLevels()", "title": null}, {"id": "Syntax_9", "title": "Syntax"}, {"id": "Parameters_10", "title": "Parameters"}, {"id": "Examples_7", "title": "Examples:"}, {"id": "shExpMatch()", "title": null}, {"id": "Syntax_10", "title": "Syntax"}, {"id": "Parameters_12", "title": "Parameters"}, {"id": "Examples_8", "title": "Examples"}, {"id": "weekdayRange()", "title": null}, {"id": "Syntax_11", "title": "Syntax"}, {"id": "Parameters_13", "title": "Parameters"}, {"id": "Examples_9", "title": "Examples"}, {"id": "dateRange()_2", "title": null}, {"id": "Syntax_12", "title": "Syntax"}, {"id": "Parameters_14", "title": "Parameters"}, {"id": "Examples_10", "title": "Examples"}, {"id": "timeRange()_2", "title": null}, {"id": "Syntax_13", "title": "Syntax"}, {"id": "Parameters_15", "title": "Parameters"}, {"id": "Examples_11", "title": "Examples"}, {"id": "Example_1", "title": "Example 1"}, {"id": "Use_proxy_for_everything_except_local_hosts", "title": "Use proxy for everything except local hosts"}, {"id": "Example_2_2", "title": "Example 2"}, {"id": "As_above_but_use_proxy_for_local_servers_which_are_outside_the_firewall", "title": "As above, but use proxy for local servers which are outside the firewall"}, {"id": "Example_3_2", "title": "Example 3"}, {"id": "Use_proxy_only_if_cannot_resolve_host", "title": "Use proxy only if cannot resolve host"}, {"id": "Example_4", "title": "Example 4"}, {"id": "Subnet_based_decisions", "title": "Subnet based decisions"}, {"id": "Example_5", "title": "Example 5"}, {"id": "Load_balancingrouting_based_on_URL_patterns", "title": "Load balancing/routing based on URL patterns"}, {"id": "Example_6", "title": "Example 6"}, {"id": "Setting_a_proxy_for_a_specific_protocol", "title": "Setting a proxy for a specific protocol"}], "slug": "Mozilla/Projects/Necko/Proxy_Auto-Configuration_(PAC)_file", "review_tags": []}