Big Bucks Blogger

Lucia Liljegren comments on blogs about making money blogging.

How To Cloak Nofollows on Individual WordPress Articles

It turns out there is a way for bloggers using Wordpress to "nofollow" links in a way that is (as far as I can tell) totally invisible to advertisers and visible only to the Googlebot. Advertisers should make themselves aware of this and learn to monitor whether or not the links the pay for actually pass link juice.
I'll explain:
  1. How to create undetectable cloaked nofollows in Wordpress .
  2. Why it is almost always a bad idea to do this.
There are other, easier ways, to make it hard for advertisers to see them-- but they aren't truly invisible. You can detect these other ways using the methods described in Two Quick Ways to Detect Cloaked Nofollows.

How to cloak nofollows so only the Googlebot sees them.

  1. Prevent anyone other than Google from loading your site using the Google user agent. The purpose of this step will be to prevent detection. This can be done using BadBehavior or Noobliminal's script to verify spiders.
  2. Insert a few lines PHP code at the top of your Header.php code. This code a) detects the Google user agent, b) checks if this is the page you want to cloak and c) if both occur, it adds the new Robots Exclusion tag. Here's the code to cloack-nofollow my 'page 3' in a Wordpress blog. $user_agent = $_SERVER["HTTP_USER_AGENT"]; if(preg_match("/(google|mediapartners)/i",$userAgent) && is_single('3')){ header("X-Robots-Tag: nofollow"); }
After you've done this, the only visitor that can "see" the nofollow is Google. Because the nofollow is sent by HTTP headers, it won't display in Google's cache. So no one will be able to visit Google, read the html in the Google cache and see you are nofollowing that page. This method can also be adapted to apply cloaked no-follows to whole categories, archives or whatever you wish to cloak-no-follow.

Cloaked nofollows using "X-Robots-Tag: nofollow" is a bad idea.

Now that I've explained how to cloak the nofollows so only Google can see them, let me give a few reasons why it's a verybad idea:
  1. It's unethical: There are legitimate reasons to nofollow links. However, only reasons I can think of to cloak a nofollow tag are either to deceive advertisers who pay you are to gip people you promised link exchanges. If want to "nofollow" every link on page 3 without cloaking, delete this bit in the if statement: "preg_match("/(google|mediapartners)/i",$userAgent) &&". That will nofollow the link for everyone. But if you are a bit evil, you're still tempted, right?
  2. You will probably make your blog drop out of the SERPS! Why? Well, when you nofollow this way, you no follow every link on a page. This means you will nofollow links you want followed. If you nofollow only one page, this probably isn't an issue. But suppose you begin trying to get clever and nofollow your whole sponsored category? Or every page that contains at least one paid link? Yes, you'll avoid any Google penalty for paid links. But Google will stop following your internal links. Then, unless you are very, very careful, and very very clever, you will soon find your blog dropping out of SERPS for everything. So, massive nofollowing using the "X-Robots-Tag: nofollow" will probably hurt you more than anyone else!
  3. Cloaking violates Google's guidelines. Now, this might seem like an odd reason. After all, the reason one might wish to nofollow is to obey the guideline of "nofollowing" all paid links. But you don't need to cloak to obey that, right? You can do nofollow publically-- letting everyone including advertisers know what's up. But, if you try to conceal this from the advertisers by cloaking, you violate a second Google guideline. Only Google can catch you, and we don't know what they would do. But, given the negative impact that will come from nofollowing all your internal links, why risk getting an additional penalty for cloaking?

That's how you cloak nofollows... and why you shouldn't!

So, now you know how to cloak a nofollow directive so only Google can see it. But you also know that method nofollows every link on the page and so can screw up Google's ability to crawl your blog. This means if you do it wantonly, you will hurt yourself more than you could ever hurt any advertiser or the person who gave you a reciprocal link hoping for one in return.
Tags:  

If you like my post, please use click orange to subscribe, green to bump or blue to sphinn! Better yet, Stumble using your toolbar. :)


Related Posts:


Play The AdSense Game!: Send your visitors to this viral game and you will receive commissions on book sales that result!
The Best Knitting Blog in the World: Lucia's awesome knitting blog
Ads

Comments

How To Cloak Nofollows on Individual WordPress Articles was posted on September 15, 2007 - Filed Under Blogging Google |  

 
  • Blog Rush

  • Frequent Referrers

  • stuff

    Bad Behavior has blocked 475 access attempts in the last 7 days.