<?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: Google, Google, Go away</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 23:07:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7072</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7072</guid>
		<description>&lt;b&gt;Actually it does work - I&#039;m not using that script on THIS site.&lt;/b&gt;

I should note that there are A LOT of scripts posted on this site. VERY FEW of them are actually being used here. Mostly I&#039;m just sharing information/scripts for other people
</description>
		<content:encoded><![CDATA[<p><b>Actually it does work &#8211; I&#039;m not using that script on THIS site.</b></p>
<p>I should note that there are A LOT of scripts posted on this site. VERY FEW of them are actually being used here. Mostly I&#039;m just sharing information/scripts for other people</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laura</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7070</link>
		<dc:creator>Laura</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7070</guid>
		<description>If there a way you could post that script in a way that I could paste it into my LiveJournal&#039;s code (on the S2 system)?  Thanks.</description>
		<content:encoded><![CDATA[<p>If there a way you could post that script in a way that I could paste it into my LiveJournal&#039;s code (on the S2 system)?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: disappointed</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7071</link>
		<dc:creator>disappointed</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7071</guid>
		<description>I found and came to this site from Google. Script does not work.
I don&#039;t have any program/firewall/whatever that would prevent sending the referrer (tested it on another site).</description>
		<content:encoded><![CDATA[<p>I found and came to this site from Google. Script does not work.<br />
I don&#039;t have any program/firewall/whatever that would prevent sending the referrer (tested it on another site).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: i1277</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7068</link>
		<dc:creator>i1277</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7068</guid>
		<description>Some nice links on your frontpage there!

Oh, by the way, I found this entry through a google search on &quot;hide from google&quot;...</description>
		<content:encoded><![CDATA[<p>Some nice links on your frontpage there!</p>
<p>Oh, by the way, I found this entry through a google search on &#034;hide from google&#034;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: i1277</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7069</link>
		<dc:creator>i1277</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7069</guid>
		<description>Oh, you were probably speaking about another blog. Anyway, still nice links.</description>
		<content:encoded><![CDATA[<p>Oh, you were probably speaking about another blog. Anyway, still nice links.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the country girl</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7064</link>
		<dc:creator>the country girl</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7064</guid>
		<description>I was just curious if you could tack this code at the bottom of your cookiecheck.php if you have your blog skinned???</description>
		<content:encoded><![CDATA[<p>I was just curious if you could tack this code at the bottom of your cookiecheck.php if you have your blog skinned???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: susan</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7065</link>
		<dc:creator>susan</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7065</guid>
		<description>I can&#039;t seem to get the code with the IP addresses working.. it keeps telling me I have a parse error...</description>
		<content:encoded><![CDATA[<p>I can&#039;t seem to get the code with the IP addresses working.. it keeps telling me I have a parse error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manuel</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7066</link>
		<dc:creator>manuel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7066</guid>
		<description>hi, i&#039;ve tried entering in any of the codes onto my blogspot.com page, and if when i use the last one listed on this page, it has zero effect;  when i use the first one listed on this page, it prints the &quot;error&quot; message and my blog, no matter if i enter the address directly, or if found via a search engine.

right now, i have the &quot;redirect to www.google.com&quot; code on my page.  

all help is appreciated...  thanks, *M</description>
		<content:encoded><![CDATA[<p>hi, i&#039;ve tried entering in any of the codes onto my blogspot.com page, and if when i use the last one listed on this page, it has zero effect;  when i use the first one listed on this page, it prints the &#034;error&#034; message and my blog, no matter if i enter the address directly, or if found via a search engine.</p>
<p>right now, i have the &#034;redirect to <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>&#034; code on my page.  </p>
<p>all help is appreciated&#8230;  thanks, *M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7067</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7067</guid>
		<description>I&#039;m reasonably certain that if you&#039;re hosting your site on blogspot - they don&#039;t let you run server side scripts like PHP (which is what you need to do with this script)... May I recommend getting your own hosting account with &lt;a href=&quot;http://www.blogomania.com&quot; target=&quot;_blank&quot;&gt;Blogomania&lt;/a&gt;? :D</description>
		<content:encoded><![CDATA[<p>I&#039;m reasonably certain that if you&#039;re hosting your site on blogspot &#8211; they don&#039;t let you run server side scripts like PHP (which is what you need to do with this script)&#8230; May I recommend getting your own hosting account with <a href="http://www.blogomania.com" target="_blank">Blogomania</a>? <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: titilayo</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/comment-page-1/#comment-7063</link>
		<dc:creator>titilayo</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/18/google-google-go-away/#comment-7063</guid>
		<description>I&#039;ve been using this code and it&#039;s been working fine, but I&#039;ve been wondering how I could get it to be even more foolproof.  In doing a search to find out how the code Kim posted above would work, I came up with this solution.

In the code Jennifer posted, replace:
&lt;h3&gt;
print(&#039;&lt;head&gt;&lt;title&gt;File Not Found&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;H1&gt;File Not Found&lt;/h1&gt;&lt;p&gt;The requested URL was not found on this server.&lt;/p&gt;&lt;/BODY&gt;&#039;)
&lt;/h3&gt;

with

&lt;h3&gt;
header(&quot;Location: http://www.google.com/&quot;)
&lt;/h3&gt;

so your whole code snippet will look something like:

&lt;h3&gt;
&lt;?
function isBadReferrer(&#036;ref)
{
if ( 
(strstr(&#036;ref, &quot;google.&quot;)) or
(strstr(&#036;ref, &quot;aolsearch.aol.com&quot;)) or
(strstr(&#036;ref, &quot;search.yahoo.com&quot;)) or
(strstr(&#036;ref, &quot;search.msn.com&quot;)) or
(strstr(&#036;ref, &quot;hotbot.com&quot;))
//add more like the above line to add more &quot;rejected&quot; referrals
)
{
return true;
}
else
{
return false;
}
}

&#036;ref = getenv(&quot;HTTP_REFERER&quot;);
if ((&#036;ref) and (isBadReferrer(&#036;ref) )) {
 header(&quot;Location: http://www.google.com/&quot;);

exit;
}
?&gt;

&lt;/h3&gt;

This code wil re-direct anyone who comes to your page via google or any of the other listed search engines  to the site you specify in the header tags (in this case I&#039;ve made it http://www.google.com, but it can be anywhere you want).  It works a charm -- anyone who comes to my site via the &quot;blocked&quot; search engines is redirected back to the google home page.</description>
		<content:encoded><![CDATA[<p>I&#039;ve been using this code and it&#039;s been working fine, but I&#039;ve been wondering how I could get it to be even more foolproof.  In doing a search to find out how the code Kim posted above would work, I came up with this solution.</p>
<p>In the code Jennifer posted, replace:</p>
<h3>
print(&#039;&lt;head&gt;&lt;title&gt;File Not Found&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;H1&gt;File Not Found&lt;/h1&gt;&lt;p&gt;The requested URL was not found on this server.&lt;/p&gt;&lt;/BODY&gt;&#039;)<br />
</h3>
<p>with</p>
<h3>
header(&#034;Location: <a href="http://www.google.com/" rel="nofollow">http://www.google.com/</a>&#034;)<br />
</h3>
<p>so your whole code snippet will look something like:</p>
<h3>
&lt;?<br />
function isBadReferrer(&#36;ref)<br />
{<br />
if (<br />
(strstr(&#36;ref, &#034;google.&#034;)) or<br />
(strstr(&#36;ref, &#034;aolsearch.aol.com&#034;)) or<br />
(strstr(&#36;ref, &#034;search.yahoo.com&#034;)) or<br />
(strstr(&#36;ref, &#034;search.msn.com&#034;)) or<br />
(strstr(&#36;ref, &#034;hotbot.com&#034;))<br />
//add more like the above line to add more &#034;rejected&#034; referrals<br />
)<br />
{<br />
return true;<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
}</p>
<p>&#36;ref = getenv(&#034;HTTP_REFERER&#034;);<br />
if ((&#36;ref) and (isBadReferrer(&#36;ref) )) {<br />
 header(&#034;Location: <a href="http://www.google.com/" rel="nofollow">http://www.google.com/</a>&#034;);</p>
<p>exit;<br />
}<br />
?&gt;</p>
</h3>
<p>This code wil re-direct anyone who comes to your page via google or any of the other listed search engines  to the site you specify in the header tags (in this case I&#039;ve made it <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>, but it can be anywhere you want).  It works a charm &#8212; anyone who comes to my site via the &#034;blocked&#034; search engines is redirected back to the google home page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.332 seconds -->
