Robots.txt & Duplicate Content

19 Apr 2011, Posted by admin in Featured,Whitehat, 9 Comments

Robots.txt & Duplicate Content

As most SEOs know, the robots.txt file sits in the root of the site, and is a list of instructions for search engines (and other bots, if they adhere to it) to follow. You can use it to specify where your XML Sitemap is, as well as prevent Google and the other search engines from accessing pages that you choose to block.

Every time Googlebot arrives at your site, it will first check to see if you have a robots.txt file. If the robots.txt file blocks any pages, Google won’t crawl them.

For years, website owners and web developers have used the robots.txt file to block Google from accessing duplicate content. From blocking URLs that use tracking parameters, blocking the mobile or print version of sites or just to fix flaws in CMS’s, I’ve seen a lot of duplicate content blocked with robots.txt in my time.

Why blocking URLs doesn’t help

But the robots.txt file is a terrible way to deal with duplicate content. Even if you’re 301 redirecting the duplicate URL to the real one, or using the canonical tag to reference the proper URL, the robots.txt file works against you.

If you have a 301 that redirects to the proper page, but you block the old URL with robots.txt, Google isn’t allowed to crawl that page to see the 301. For example, have a look at Ebooker’s listing for ‘flights’:

Ebookers SERPs

The URL that’s ranking (on page 1 of Google for ‘flights’) is blocked in robots.txt. It’s got no proper snippet because Google can’t see what’s on the page, it’s had a guess at the title based on what other sites have linked to it with. And here’s the reason why Google can’t crawl that URL:

Ebookers robots.txt

If Ebooker unblocked that URL, Google would be able to crawl it to discover the 301, and the page would most likely have a better chance of ranking higher (as it wouldn’t just appear to be a blank page to the search engines).

If you block Google from seeing a duplicate page, it’s not able to crawl it and see that it’s duplicate. If there’s a canonical tag on that page, it may as well not be there as Google won’t be able to see it. If it redirects elsewhere, Google won’t know.

If you have duplicate content, don’t block the search engines from seeing it. You’ll just prevent the links to those blocked pages from fully counting.

Flickr image from Solo.

Promote Post

Enjoyed this post?


April 19, 2011 2:23 pm


Just had this discussion internally last week after tracking parameters were added to nav links – blocking content using Robots.txt should not be taken lightly!

April 19, 2011 3:41 pm

malcolm coles

I see you paid homage to with …!

April 19, 2011 4:00 pm


@Tom – I’ve seen it happen on tracking parameters before quite a lot too. The problem is, to a web dev it sounds quite logical on the surface, but in reality it’s actually pretty harmful.

@Malcolm – I actually did steal the idea from you after seeing yours!

April 20, 2011 4:49 am

Jeremy Referencement

Totally makes sense mate!

Robots.txt is a very powerful file and the old pages redirection gets messed up so much times with a client.

May 31, 2011 9:41 am

martin ray

Can anyone explain all the queries used in this robots.txt file…?

September 12, 2011 5:40 pm


I use the robots.txt file to dissallow all when a website is in developement stages then allow all when the website has gone live, is this ok ?

Best Wishes,

April 18, 2013 11:13 am

san kay

Ya This file is very important for indexing website in google

August 15, 2013 2:26 pm


Hi. I have two similar websites that contains the same products. The only difference between these sites are in the brand, The problem is that the pages are so similar and could have the ranking affected by Google that probably will consider that as a duplacate content. How can I solve this problem? Using robots.txt can I index the page without crawling?

March 7, 2014 8:00 am

Robots.txt & Duplicate Content | Search Engine Opitmization Lab – SEO Company, Delhi, India

[…] Robots.txt & Duplicate Content is a post from: Shark SEO. Have you played The Search Game? […]

Posting your comment...