How to Prevent Duplicate Content with Effective Use of the Robots.txt and Robots Meta Tag

Duplicate content is one of the problems that we regularly come across as part of the search engine optimization services we offer. If the search engines determine your site contains similar content, this may result in penalties and even exclusion from the search engines. Fortunately it's a problem that is easily rectified.

Your primary weapon of choice against duplicate content can be found within "The Robot Exclusion Protocol" which has now been adopted by all the major search engines.

There are two ways to control how the search engine spiders index your site.

1. The Robot Exclusion File or "robots.txt" and

2. The Robots < Meta > Tag

The Robots Exclusion File (Robots.txt)
This is a simple text file that can be created in Notepad. Once created you must upload the file into the root directory of your website e.g. www.yourwebsite.com/robots.txt. Before a search engine spider indexes your website they look for this file which tells them exactly how to index your site's content.

The use of the robots.txt file is most suited to static html sites or for excluding certain files in dynamic sites. If the majority of your site is dynamically created then consider using the Robots Tag.

Creating your robots.txt file

Example 1 Scenario
If you wanted to make the .txt file applicable to all search engine spiders and make the entire site available for indexing. The robots.txt file would look like this:

User-agent: *
Disallow:

Explanation
The use of the asterisk with the "User-agent" means this robots.txt file applies to all search engine spiders. By leaving the "Disallow" blank all parts of the site are suitable for indexing.

Example 2 Scenario
If you wanted to make the .txt file applicable to all search engine spiders and to stop the spiders from indexing the faq, cgi-bin the images directories and a specific page called faqs.html contained within the root directory, the robots.txt file would look like this:

User-agent: *
Disallow: /faq/
Disallow: /cgi-bin/
Disallow: /images/
Disallow: /faqs.html

Explanation
The use of the asterisk with the "User-agent" means this robots.txt file applies to all search engine spiders. Preventing access to the directories is achieved by naming them, and the specific page is referenced directly. The named files & directories will now not be indexed by any search engine spiders.

Example 3 Scenario
If you wanted to make the .txt file applicable to the Google spider, googlebot and stop it from indexing the faq, cgi-bin, images directories and a specific html page called faqs.html contained within the root directory, the robots.txt file would look like this:

User-agent: googlebot
Disallow: /faq/
Disallow: /cgi-bin/
Disallow: /images/
Disallow: /faqs.html

Explanation

By naming the particular search spider in the "User-agent" you prevent it from indexing the content you specify. Preventing access to the directories is achieved by simply naming them, and the specific page is referenced directly. The named files & directories will not be indexed by Google.

That's all there is to it!

As mentioned earlier the robots.txt file can be difficult to implement in the case of dynamic sites and in this case it's probably necessary to use a combination of the robots.txt and the robots tag.

The Robots Tag
This alternative way of telling the search engines what to do with site content appears in the section of a web page. A simple example would be as follows;

In this example we are telling all search engines not to index the page or to follow any of the links contained within the page.

In this second example I don't want Google to cache the page, because the site contains time sensitive information. This can be achieved simply by adding the "noarchive" directive.

What could be simpler!

Although there are other ways of preventing duplicate content from appearing in the Search Engines this is the simplest to implement and all websites should operate either a robots.txt file and or a Robot tag combination.

Should you require further information about our search engine marketing or optimization services please visit us at http://www.e-prominence.co.uk ? The search marketing company

In The News:


pen paper and inkwell


cat break through


7 Search Engine Optimization Strategies

Search engine optimization refers to the technique of making your... Read More

How To Find Good Keywords

Good keywords are frequently searched for (high demand) but not... Read More

Gaining Additional PageRank

Google is the major search engine webmasters have to deal... Read More

The Simple Formula To Search Engines

Search engines are one of the best tools to bring... Read More

Website Copy-writing for Higher Sales and Higher Search Engine Ranking

Why, you ask? Mainly, because search engines want to provide... Read More

7 Search Engine Optimization Strategy

Search engine optimization refers to the technique of making your... Read More

Link Horse Trading For The PR Challenged

After 105 days Google finally updated PR. And it's about... Read More

Increase Web Site Sales with a SEO Proposal - Part 1

You can easily get confused by all the search engine... Read More

Why SEO Will Make or Break You, Part 1

Today's article is about the wonders of SEO. SEO is... Read More

How to Google; or How to be Easily Distracted

I set out with the intention of writing a self... Read More

SEO Made Easy!

Search engine optimization remains a minefield of old advice, outdated... Read More

Can Google Really Deliver Country Specific Searching?

This is a serious matter, can Google really deliver top... Read More

The Google Sandbox Explained

Introduction The Google Sandbox is a metaphorical term... Read More

The Wonders of Wordtracker: Its More than a Hunt for Keywords

For me personally, Wordtracker.com is not just a... Read More

Yahoo Listing Still Worth It?

In October 2002, the Yahoo! portal changed the way it... Read More

How to Avoid Being Dropped by the Search Engines

For websites, one of the most important things in their... Read More

SEO Expert Guide - Sitewide Optimization (part 4/10)

In parts 1 and 2 you learnt how to develop... Read More

Site-Digest 7 Simple Steps To Place Your Site Map On Steroids

The Site Map is a too often overlooked piece of... Read More

Search Engine Optimization for Everyone

There are many facets to SEO and the search engines... Read More

Submitting Your Site to Search Engines and Directories

Regardless of which type of business you currently have, you... Read More

Search Engine Optimization Tips For 2005 - Part One

Anybody who has their own website or is involved in... Read More

HTML Title Tags Dictate Your Rankings

There are a lot of things in Search Engine Optimization... Read More

Basic Search Engine Optimization For Dummies

OK, you published your site, now you just sit by... Read More

Keywords Finalization Methodology

To arrive at the set of keywords that:Describe business correctly... Read More

SEO Expert Guide - Search Engines Explained (part 1/10)

Before we explore the world of search engine optimization, it... Read More

Your Website Title Could Be Costing You Money

Nothing could be simpler than the title you give to... Read More

Press Releases Can Increase Search Engine Positioning

When you write a press release, what is your ultimate... Read More

Speed Indexing - 3 Steps to Getting Your Website Listed in Google Quickly

Getting your website listed in Google quickly simply requires that... Read More

Feed me - Satisfy the Search Engines and Your Sites Visitors With Keyword-Rich Content

Search engines love content. Graphics may make your site look... Read More

10 Ways to Tackle Keyword Research and Selection

You need to be extremely careful with keyword research so... Read More

What is the Google Dance?

As with any good web developer, the ability to time... Read More

Promoting Home Business: Tips to Increase Web Site Sales

You've selected an appropriate Online Business Opportunity. That is not... Read More

How To Boost Your Keyword Density On Your Web Site To Gain Top Positions At The Search Engines

Let's talk about what keyword density is and how to... Read More