<?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: Avoid Google keyword detection picking up Firefox &#8216;aq=&#8217;</title>
	<atom:link href="http://www.mindthe.net/devices/2008/12/15/avoid-google-keyword-detection-picking-up-aq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mindthe.net/devices/2008/12/15/avoid-google-keyword-detection-picking-up-aq/</link>
	<description>Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. - Douglas Adams</description>
	<lastBuildDate>Tue, 29 Nov 2011 06:39:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: laymen</title>
		<link>http://www.mindthe.net/devices/2008/12/15/avoid-google-keyword-detection-picking-up-aq/comment-page-1/#comment-353</link>
		<dc:creator>laymen</dc:creator>
		<pubDate>Wed, 27 May 2009 12:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindthe.net/devices/?p=136#comment-353</guid>
		<description>good tips but can you write more about this so we could follow</description>
		<content:encoded><![CDATA[<p>good tips but can you write more about this so we could follow</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Rowe</title>
		<link>http://www.mindthe.net/devices/2008/12/15/avoid-google-keyword-detection-picking-up-aq/comment-page-1/#comment-339</link>
		<dc:creator>Chris Rowe</dc:creator>
		<pubDate>Fri, 02 Jan 2009 11:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mindthe.net/devices/?p=136#comment-339</guid>
		<description>Good point there Jon. I&#039;ve been using the following snippet to detect these things...

http://tinypaste.com/2247d

&lt;code&gt;

// GET AND LOG QUERYSTRING FROM REFERER
if ($_SERVER[&#039;HTTP_REFERER&#039;]){
	$refer = $_SERVER[&#039;HTTP_REFERER&#039;];
	$referrer_url = $refer;
	if (strstr($referrer_url, &quot;google&quot;)) {
		$sitefrom = &quot;Google&quot;;
		$ptn = &#039;![?&amp;]q=([^&amp;.]*)!&#039;;
	} else if (strstr($referrer_url, &quot;yahoo&quot;)) {
		$sitefrom = &quot;Yahoo&quot;;
		$ptn = &#039;![?&amp;]p=([^&amp;.]*)!&#039;;
	} else if (strstr($referrer_url, &quot;msn&quot;)) {
		$sitefrom = &quot;MSN&quot;;
		$ptn = &#039;![?&amp;]q=([^&amp;.]*)!&#039;;
	}
	if (preg_match($ptn, $referrer_url, $matches)) {
		$qstring = urldecode($matches[1]);
		logaction(&quot;arrived from &quot; . $sitefrom .&quot;, searched for &#039;&quot; . $qstring . &quot;&#039;&quot;);
	}
} 

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Good point there Jon. I&#8217;ve been using the following snippet to detect these things&#8230;</p>
<p><a href="http://tinypaste.com/2247d" rel="nofollow">http://tinypaste.com/2247d</a></p>
<p><code></p>
<p>// GET AND LOG QUERYSTRING FROM REFERER<br />
if ($_SERVER['HTTP_REFERER']){<br />
	$refer = $_SERVER['HTTP_REFERER'];<br />
	$referrer_url = $refer;<br />
	if (strstr($referrer_url, "google")) {<br />
		$sitefrom = "Google";<br />
		$ptn = '![?&amp;]q=([^&amp;.]*)!';<br />
	} else if (strstr($referrer_url, "yahoo")) {<br />
		$sitefrom = "Yahoo";<br />
		$ptn = '![?&amp;]p=([^&amp;.]*)!';<br />
	} else if (strstr($referrer_url, "msn")) {<br />
		$sitefrom = "MSN";<br />
		$ptn = '![?&amp;]q=([^&amp;.]*)!';<br />
	}<br />
	if (preg_match($ptn, $referrer_url, $matches)) {<br />
		$qstring = urldecode($matches[1]);<br />
		logaction("arrived from " . $sitefrom .", searched for '" . $qstring . "'");<br />
	}<br />
} </p>
<p></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

