Examples

The following example configures Content Gateway to deny all FTP document requests to the IP address 112.12.12.12:

dest_ip=112.12.12.12 scheme=ftp action=deny

The following example configures Content Gateway to keep the client IP address header for URL requests that contain the regular expression politics and whose path prefix is

/viewpoint:

url_regex=politics prefix=/viewpoint keep_hdr=client_ip

The following example configures Content Gateway to strip all cookies from client requests destined for the origin server www.server1.com:

dest_host=www.server1.com strip_hdr=cookie

The following example configures Content Gateway to disallow puts to the origin server www.server2.com:

dest_host=www.server2.com method=put action=deny

Content Gateway applies the rules in the order listed in the file. For example, the following sample filter.config file configures Content Gateway to do the following:

  • Allow all users (except those trying to access internal.com) to access server1.com
  • Deny all users access to notthatsite.com

    dest_host=server1.com action=allow

    dest_host=notthatsite.com action=deny