How can I exclude some websites from passing through the GFI WebMonitor proxy?

The information in this article applies to:

  • GFI WebMonitor 2009 (Standalone Proxy Version)

Article ID: KBID003673

Query keywords: exclude, WPAD

In some situations, you may wish for some websites to bypass the GFI WebMonitor proxy, such as internal applications and websites. The following procedure explains how to configure GFI WebMonitor proxy exclusions using the ProxyPac.pac configuration file.

Proxy exclusions can be created for either of the following:

  • Protocol
  • IP address
  • IP subnet
  • Domain name

Perform the following procedure to create a GFI WebMonitor proxy exclusion:

  1. Logon the GFI WebMonitor server using administrative credentials
  2. Download an updated version of 'ProxyPac.pac' from here
  3. Unzip the 'ProxyPac.pac' file and save it to the following location <GFI\WebMonitor>

    Note: This will replace the current 'ProxyPac.pac' file stored in <GFI\WebMonitor>
     
  4. Browse to the following path <GFI\WebMonitor> and open the 'ProxyPac.pac' configuration file using Notepad
  5. Perform the following changes depending on what type of exclusion you wish to create:

Protocol exclusions:

  1. Locate the section describing 'List your protocol exclusions here:'
  2. Enter your protocol exclusions between the 'new Array();' clause. Example:
     
    //======================================================================
    // List your protocol exclusions here:
    //======================================================================
     
    var arrayBypassProxyForProtocols = new Array(
    'ftp:',
    'https:'
    );
    //======================================================================

IP address exclusions:

  1. Locate the section describing List your IP exclusions here:'
  2. Enter your IP address exclusions between the 'new Array();' clause. Example
     
    //======================================================================
    // List your IP exclusions here:
    //======================================================================
     
    var arrayBypassProxyForIPs = new Array(
    '172.16.130.1',
    '192.168.100.0/255.255.255.0'
    );
    //======================================================================

IP subnet exclusions:

  1. Locate the section describing 'List your IP subnet exclusions here:'
  2. Enter your IP subnet exclusions between the 'new Array();' clause. Example
     
    //======================================================================
    // List your IP subnet exclusions here :
    //======================================================================
     
    var arrayBypassProxyForSubnets = new Array(
    '192.168.100.0/255.255.255.0',
    '192.168.0.0/255.255.0.0'
    );
    //======================================================================

Domain name exclusions:

  1. Locate the section describing 'List your name exclusions here:'
  2. Enter your domain name exclusions between the 'new Array();' clause. Example
     
    //======================================================================
    // List your name exclusions here:
    //======================================================================
     
    var arrayBypassProxyForNames = new Array(
    'hostname.domain.com',
    '*.domain.com'
    );
    //======================================================================

Once the required GFI WebMonitor proxy exclusions have been done, restart the GFI WebMonitor service for changes to take effect.

Notes:

  • Ensure that all entries within the configuration files are between single or double quotes Example 'ftp:' or "ftp:"
  • Should you require multiple proxy exclusions, include a comma between multiple entries. Example:
     
    'hostname.domain.com',
    '*.domain.com'