<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David&#039;s technobabble &#187; Analytics</title>
	<atom:link href="http://bable.cybermarshall.com/tag/analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://bable.cybermarshall.com</link>
	<description>David&#039;s thoughts about this and that</description>
	<lastBuildDate>Fri, 22 Jan 2010 18:29:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bad Behavior was blocking Google Analytics Verify</title>
		<link>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/</link>
		<comments>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/#comments</comments>
		<pubDate>Sat, 16 May 2009 16:51:18 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Bad Behavior]]></category>

		<guid isPermaLink="false">http://bable.cybermarshall.com/?p=462</guid>
		<description><![CDATA[This morning I was setting up a new blog to use Google Analytics. I&#8217;ve done this many times before. However, this morning every time that Google would try and verify the site, the verification would fail.

I ran a view &#8220;page source&#8221; on my site&#8217;s home page with both Internet Explorer and Firefox and I could [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I was setting up a new blog to use Google Analytics. I&#8217;ve done this many times before. However, this morning every time that Google would try and verify the site, the verification would fail.<br />
<span id="more-462"></span><br />
I ran a view &#8220;page source&#8221; on my site&#8217;s home page with both Internet Explorer and Firefox and I could see the correct Analytics code. I looked in my web server logs and could see that Google had accessed the site. After checking a few more things, I recalled that last week &#8220;Bad Behavior&#8221; had been blocking Windows Live. See: <a href="http://steve.heyvan.com/2009/05/09/technology-reviews/bad-behavior-workaround-dealing-with-windows-live/" onclick="pageTracker._trackPageview('/outgoing/steve.heyvan.com/2009/05/09/technology-reviews/bad-behavior-workaround-dealing-with-windows-live/?referer=');">Bad Behavior Workaround &#8211; Dealing with Windows Live.</a>.</p>
<p>I checked my &#8220;Bad Behavior&#8221; log and saw that &#8220;Bad Behavior&#8221; was reporting that it had blocked <em>74.125.75.17</em>.  The reason given was <em>&#8220;IP address found on http:BL blacklist&#8221;</em>.  I determined that this IP address did belong to Google. I ran several more tests and each time the Google Analytics verifier used this IP address and was blocked.</p>
<p>I added the IP Address to my &#8220;Bad Behavior&#8221; white-list located in directory <span style="text-decoration: underline;"><em>&lt;blog&gt;/wp-content/plugin/bad-behavior/bad-behavior/whitelist.inc.php</em></span> and restarted my httpd service. This allowed me to verify Google Analytics.</p>
<p>I use several of Google&#8217;s service. This has me considering white-listing all of Google&#8217;s IP Addresses. Currently, this appears to be &#8220;74.125.0.0/16&#8243; in CIDR format. However, at this time I decided not to do this. One of the main reasons is that would make me trust any computer that accesses the internet from inside of Google. I&#8217;m not sure that I&#8217;m ready to do this.</p>
<p>Below is my whitelist.inc.php code with the IP <em>74.125.75.17</em> white-listed.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p462code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4622"><td class="code" id="p462code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/defined" onclick="pageTracker._trackPageview('/outgoing/www.php.net/defined?referer=');"><span style="color: #990000;">defined</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BB2_CORE'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <a href="http://www.php.net/die" onclick="pageTracker._trackPageview('/outgoing/www.php.net/die?referer=');"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'I said no cheating!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> bb2_whitelist<span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Inappropriate whitelisting WILL expose you to spam, or cause Bad</span>
	<span style="color: #666666; font-style: italic;">// Behavior to stop functioning entirely!  DO NOT WHITELIST unless you</span>
	<span style="color: #666666; font-style: italic;">// are 100% CERTAIN that you should.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// IP address ranges use the CIDR format.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Includes four examples of whitelisting by IP address and netblock.</span>
	<span style="color: #000088;">$bb2_whitelist_ip_ranges</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array" onclick="pageTracker._trackPageview('/outgoing/www.php.net/array?referer=');"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">&quot;64.191.203.34&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">// Digg whitelisted as of 2.0.12</span>
		<span style="color: #0000ff;">&quot;208.67.217.130&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">// Digg whitelisted as of 2.0.12</span>
		<span style="color: #0000ff;">&quot;10.0.0.0/8&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;172.16.0.0/12&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;192.168.0.0/16&quot;</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">&quot;74.125.75.17&quot;</span><span style="color: #339933;">,</span>          <span style="color: #666666; font-style: italic;">// Google</span>
                <span style="color: #0000ff;">&quot;65.54.233.0/24&quot;</span><span style="color: #339933;">,</span>       <span style="color: #666666; font-style: italic;">// Microsoft Live</span>
<span style="color: #666666; font-style: italic;">//		&quot;127.0.0.1&quot;,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Inappropriate whitelisting WILL expose you to spam, or cause Bad</span>
	<span style="color: #666666; font-style: italic;">// Behavior to stop functioning entirely!  DO NOT WHITELIST unless you</span>
	<span style="color: #666666; font-style: italic;">// are 100% CERTAIN that you should.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// You should not whitelist search engines by user agent. Use the IP</span>
	<span style="color: #666666; font-style: italic;">// netblock for the search engine instead. See http://whois.arin.net/</span>
	<span style="color: #666666; font-style: italic;">// to locate the netblocks for an IP.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// User agents are matched by exact match only.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Includes one example of whitelisting by user agent.</span>
	<span style="color: #666666; font-style: italic;">// All are commented out.</span>
	<span style="color: #000088;">$bb2_whitelist_user_agents</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array" onclick="pageTracker._trackPageview('/outgoing/www.php.net/array?referer=');"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
	<span style="color: #666666; font-style: italic;">//	&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) It's me, let me in&quot;,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Do not edit below this line</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/empty" onclick="pageTracker._trackPageview('/outgoing/www.php.net/empty?referer=');"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_ip_ranges</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_ip_ranges</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$range</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>match_cidr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ip'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$range</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/empty" onclick="pageTracker._trackPageview('/outgoing/www.php.net/empty?referer=');"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_user_agents</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$bb2_whitelist_user_agents</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$user_agent</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/strcmp" onclick="pageTracker._trackPageview('/outgoing/www.php.net/strcmp?referer=');"><span style="color: #990000;">strcmp</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$package</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'headers_mixed'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'User-Agent'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_agent</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://bable.cybermarshall.com/2009/05/16/bad-behavior-was-blocking-google-analytics-verify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
