Pac File Bypass Proxy For Local Addresses By Name

Revised: July 15, 2010OverviewProxy Auto-Configuration (PAC) is a method used by Web browsers to select a proxy for a given URL. The method for choosing a proxy is written as a JavaScript function contained in a PAC file. This file can be hosted locally or on a network. Browsers can be configured to use the file either manually or, in Microsoft Windows environments, automatically using Group Policy Objects.

  1. Pac File Bypass Proxy For Local Addresses By Name Search
  2. Pac File Tester
  3. Pac File Bypass Proxy For Local Addresses By Name Meaning

This appendix explains the basics of using PAC files. How PAC Files WorkA PAC file is referenced each time a new URL is loaded.

The host, for example cnn.com, the URL, for example cnn.com/images/logo.jpg, and other information such as the local machine IP address can be evaluated and rules based on this information used to determine whether to send the traffic via a proxy or direct to the Internet.The following example compares the URL requested by the user, with the URL ipcheckit.com/data/. If the URLs match, the PAC file will instruct the browser to send the request direct to the Internet. This can be used if you need to exception a section of a Web site from going via the Web Scanning Services; if the user had requested only ipcheckit.com, this rule would not apply. Although a PAC file can have any name, normally it should be called proxy.pac. PAC File DeploymentThere are three ways to deploy a PAC file:. Local PAC: in some cases it may be appropriate to host the file on the local machine, this can be useful if the machine is likely to leave the network and doesn't have Anywhere+ installed.

Proxy.pac file location

Rules can be specified in the PAC file to allow direct Internet access when off-network. Share PAC: the file can be hosted on a Windows share, assuming that the share is accessible to the machine and that the correct permissions have been applied. If the location of the PAC file is password protected then this is likely to prevent the browser from downloading the file. Hosted PAC: hosting the file on a Web server is the most popular and widely supported method. The only requirement is that the file be served by the Web server with a specific MIME type (application/x-ns-proxy-autoconfig). Basic PAC File ExamplesDirect all traffic through the first proxy.

If it is unreachable, use the second proxy. If both are unavailable go direct. 'PROXY proxy.example1.com:8080'; Manually Configure a Browser to Use a PAC FileWith Firefox, in the Tools menu click Options. Click the Network tab then click Settings. Click Automatic Proxy Configuration URL. Enter the URL of the PAC file in the box then click OK to save the settings.With Internet Explorer, in the Tools menu click Internet Options. Click the Connections tab then click LAN settings.

Pac File Tester

Select 'Use automatic configuration script'. Enter the URL of the PAC file in the box then click OK to save the settings.With Opera, in the Tools menu click Preferences. Click the Advanced tab then, in the left panel, click Network. Click Proxy Servers and select 'use automatic proxy configuration'. Enter the URL of the PAC file in the box then click OK to save the settings.With Safari for Windows, in the Edit menu click Preferences. Click the Advanced tab then click Change settings.

Pac File Bypass Proxy For Local Addresses By Name Meaning

Click LAN settings. Select 'Use automatic configuration script'. Enter the URL of the PAC file in the box then click OK to save the settings. Windows Network Share Hosted PAC FilesIt is possible to host a PAC file on a Windows network share by using a VBScript to copy it to the local machine. This can be integrated with Windows logon scripting.Step 1 Set a share directory on a file server that everyone has access to.Step 2 Create the proxy.pac file in the shared directory.Step 3 Create a script.vbs file to copy the proxy.pac file from the network share to the local machine, for example.

Note Logon scripts run with the same permissions as the logged-on user, and may not have write permission for the root of C. Ensure the VBScript copies the PAC file to a location where the user has write permission.

However, the PAC file should be write-protected to prevent users changing it.Step 4 Open the Active Directory Users and Computers control panel.Step 5 View the properties of the OU or Domain for which you want to apply the Group Policy.Step 6 Edit the Group Policy.Step 7 In the User Configuration area, expand Windows Settings and click Scripts (Logon/Logoff).Step 8 Add a Logon Script.Step 9 Browse to find the script.vbs file you created earlier, then click OK.Table B-1 Local PAC URL Syntax. Aarohan episode 9.