<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Why your BPM scripts should use Download Filters</title>
	<atom:link href="http://www.jds.net.au/tech-tips/vugen-download-filters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jds.net.au/tech-tips/vugen-download-filters/</link>
	<description>Expert consulting services with HP Software</description>
	<lastBuildDate>Tue, 31 Aug 2010 10:19:03 +1000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Stuart Moncrieff</title>
		<link>http://www.jds.net.au/tech-tips/vugen-download-filters/#comment-5949</link>
		<dc:creator>Stuart Moncrieff</dc:creator>
		<pubDate>Thu, 16 Jul 2009 00:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jds.net.au/?p=288#comment-5949</guid>
		<description>I actually like to add download filters using the web_add_auto_filter function, rather than the script runtime settings. This allows me to put a comment in the script saying *why* the download filter is necessary.

Syntax for an &quot;exclude&quot; filter is:

&lt;pre lang=&quot;c&quot; line=&quot;1&quot;&gt;
  // Exclude requests to Google Analytics, so BPM script will not mess up usage metrics
  web_add_auto_filter(&quot;Action=Exclude&quot;, &quot;Host=www.google-analytics.com&quot;, LAST);
&lt;/pre&gt;

It is actually best practice to use &quot;include&quot; filters instead of &quot;exclude&quot; filters. This allows you to whitelist acceptable hosts, rather than continue to maintain a blacklist of hosts that should not be accessed.

The syntax for an &quot;include&quot; filter is:

&lt;pre lang=&quot;c&quot; line=&quot;1&quot;&gt;
  // Only allow requests to www.jds.net.au to exclude any ads or tracking code from other servers (e.g. Google Analytics)
  web_add_auto_filter(&quot;Action=Include&quot;, &quot;Host=www.jds.net.au&quot;, LAST);
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>I actually like to add download filters using the web_add_auto_filter function, rather than the script runtime settings. This allows me to put a comment in the script saying *why* the download filter is necessary.</p>
<p>Syntax for an &#8220;exclude&#8221; filter is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="c" style="font-family:monospace;">  <span style="color: #666666; font-style: italic;">// Exclude requests to Google Analytics, so BPM script will not mess up usage metrics</span>
  web_add_auto_filter<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Action=Exclude&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;Host=www.google-analytics.com&quot;</span><span style="color: #339933;">,</span> LAST<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>It is actually best practice to use &#8220;include&#8221; filters instead of &#8220;exclude&#8221; filters. This allows you to whitelist acceptable hosts, rather than continue to maintain a blacklist of hosts that should not be accessed.</p>
<p>The syntax for an &#8220;include&#8221; filter is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="c" style="font-family:monospace;">  <span style="color: #666666; font-style: italic;">// Only allow requests to www.jds.net.au to exclude any ads or tracking code from other servers (e.g. Google Analytics)</span>
  web_add_auto_filter<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Action=Include&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;Host=www.jds.net.au&quot;</span><span style="color: #339933;">,</span> LAST<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>
