How do I configure or write PAC file by which users does not have to change proxy options RRS feed

  • Question

  • Hey Folks,

    may be this might sound basic question pertaining to PAC but at my office I have most of the users are using Laptops and I am currently feeding proxy address manually. This creates a problem when user carries their laptop to home and they will have keep changing the proxy setting.

    Again sinc we are growing in future this might not be an feasible as well as correct option hence  I m looking for an PAC file option. But wondering what setting do I need follow so that users does not have change their Proxy or PAC file setting. At office the traffic will be rerouted to office proxy address and at home they will be routed to their local internet.

    Is it possible?

    Tuesday, April 8, 2014 1:23 PM


  • Hi,

    Automatic detection should be meet your requirement. Automatic detection is based on Web Proxy AutoDiscovery (WPAD). It is supported by Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS). If you select appropriate settings, DHCP and DNS servers can automatically detect and configure browser settings by directing Internet Explorer 9 to the location of a configuration file. This feature builds on existing automatic configuration technologies, in which a browser can be configured from a central location with an automatic proxy script file (.wpad or .pac file).

    For more information, please read this article:

    Automatic Detection

    In addition, about how a .pac file could be used to specify an auto-proxy URL, please view this article. It provides some examples:

    JavaScript or JScript Auto-Proxy Example Files

    Karen Hu
    TechNet Community Support

    Thursday, April 10, 2014 7:51 AM