Using X-Robots HTTP Header To Sneakily Delete Your Link Farms

by Patrick Altoft on November 19, 2008

Warning- The strategy below might be risky.

Zoe asked a question this week about the best way to remove old link exchange pages. I responded on Twitter but wanted to post about it as well.

It’s well known that having loads of links pages on your website isn’t a good idea. One links page with 20 links is fine, 10 links pages all with 100 links will probably do more harm than good.

If you have been given a penalty in Google then deleting all these links pages is the first thing you need to do. But what if your site is ranking well but you want to get rid of the pages before Google gives you a penalty? Surely if you remove the pages everybody will stop linking to you and your rankings will fall?

The key is to find a way of silently removing your links pages, without alerting all your link partners to the fact that their link has gone.

My solution is to make use of the X-Robots HTTP header that Googlebot is now supporting. This allows you to add the noindex meta information to a page server side so that visitors can’t see any traces in your robots.txt or your source code.

header(’X-Robots-Tag: noindex, nofollow’, true);

This will remove your links pages from Google and probably won’t alert your link partners.

You might also like to cloak the X-Robots tag so that it only appears to Googlebot – you don’t want people to be able to run a header checker and see your sneaky plan.

Patrick Altoft is Director of Search at Leeds based digital & SEO agency Branded3. Patrick also runs Blogstorm.

You can get our blog posts delivered for free by email every day - simply add your email address to the box below or alternatively grab the RSS feed.

Read some similar posts

{ 14 comments… read them below or add one }

wesley 19 Nov 2008 at 3:06 pm

Ok, that’s pretty darn unethical..

Patrick Altoft 19 Nov 2008 at 3:29 pm
Find me on Twitter

Without a doubt it’s totally unethical.

More comments from Patrick Altoft
gabs 19 Nov 2008 at 3:53 pm

Sneaky..

Rick 19 Nov 2008 at 4:05 pm

Cheers Patrick, always wondered how to go around this.

Joost de Valk 19 Nov 2008 at 10:17 pm

Patrick, you’re smart but a stupid fuck at the same time :) (and I’ve been doing this on some sites ever since I wrote the post you linked to ;) )

But this is why you’re stupid: don’t noindex the freaking page! People will see that it’s not indexed and start bitching. Just index, nofollow it!

Still love you though :)

Craig Mullins 20 Nov 2008 at 4:19 am

Lovely, Now I need to cloak myself as Googlebot now. :)

Tim 20 Nov 2008 at 4:59 am

Wouldn’t your link partners work out that the pages which link to their website are no longer indexed, let alone displaying toolbar PageRank?

Joost de Valk 20 Nov 2008 at 8:36 am

@Craig if the cloaking is done well you won’t be able to :)

Joost de Valk 20 Nov 2008 at 9:45 am

@Tim that’s what I said as well, but Patrick hadn’t moderated my comment yet ;)

Pablo 20 Nov 2008 at 1:49 pm

Pretty darn interesting indeed. Thanks for sharing Patrick :)

Acai 20 Nov 2008 at 3:20 pm

@Tim I would say about 5-10% of webmasters may notice, who cares? You’re still benefiting from the hundreds of other people you have conned.

5ubliminal 06 Dec 2008 at 9:41 pm

Reinventing the wheel only 1year and some later ;)
Check out my post.

DaRussia 06 Feb 2009 at 6:56 pm

Damn, good idea, i just thought about smth like that, because banning directories thru robots.txt is easy detectable.

Bob 12 Apr 2010 at 3:58 am

Craig: “Lovely, Now I need to cloak myself as Googlebot now.”

Make sure you also come from the Googlebot IP address, in case the pages use that instead of User Agent.

{ 2 trackbacks }

Silently Delete Your Link Farm | Sha Money Maker
11.24.08 at 4:46 am
Cuando te dan enlaces con queso | Dictina
04.20.10 at 9:12 pm

Leave a Comment (registration is optional)

Registration is free, takes about 5 seconds and is worth doing.

You can use these HTML tags and attributes:
<a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>