Global Grind code correction for RSS subscribers

by rafi on April 28, 2010

I just noticed that the Global Grind frame protection I posted in the previous post didn’t render properly in my RSS feed this morning.

So if you used the code from RSS instead of from the blog post… You should use this instead:


<?php

if(strpos($_SERVER['HTTP_REFERER'],'http://globalgrind.com') !== false) {

echo "<p>Because of Global Grind's <a href='http://www.patrickokeefe.com/2010/04/26/global-grind-copies-content-submits-it-to-google-news/' target='_parent'>evil policy of content scraping</a>, I am blocking all traffic from Global Grind. Please support those who create instead of those who steal.<br /><br />You can still <a href='http://www.ohword.com" . $_SERVER['REQUEST_URI'] . "' target='_parent'>read this post on my site.</a></p>";

exit;

}

?>

Sorry about that.

{ 2 comments… read them below or add one }

Stan October 19, 2010 at 5:40 am

ill change everything according to all of said above (or written, who cares :) )

DJ G Phaness December 10, 2010 at 11:26 am

Leave a Comment

{ 1 trackback }

Previous post:

Next post: