article submission
Home :: SEO Services :: About Us :: Contact Us

What is a robots.txt file and do I need it on my site?

Author: Nathan Drach

     Need to limit sections of your site from the search engines? No problem. Keep them from crawling your sensitive content, or limit exposure of duplicate content.     

     You may have noticed when reviewing your website usage statistics a reference to a file named “robots.txt”. This is a basic configuration file that robots (search engine spiders) use to note which files and directories they should not index.

Although not necessary, it is important to have the file, robots.txt, in the root of your website (http://www.yourdomain.com/robots.txt). The basic use of the robots.txt is to note which files and directories the robots should not index.  The absence of the file will show 404 errors in your website logs, making it more difficult to parse the stats logs for useful information.

There are 2 components to the syntax of the robots.txt file structure: user agent line and the disallow line.

The syntax is as follows: <FIELD> ":" <VALUE>

User-agent

A list of the robots visiting your site may be viewed in the stats logs of your website. A listing of User-agents may be viewed at http://www.robotstxt.org/wc/active.html

A specific robot may be referenced in the User-agent syntax.

User-agent: googlebot

A wildcard may also be used to note all robots.

User-agent: *

Disallow

This section of the syntax states which files and directories should not be indexed.

If you have a page named “addresses.html”, and you do not want the robot to index it, add the following line after the User-agent syntax:

Disallow: addresses.html

You may also limit the robot at the directory level. If the directory “/billing” in your website should be restricted from indexing, place the following text after the User-agent syntax.

Disallow: /billing/

A wildcard may also be used to note all files on site.

Disallow: /

How do I make comments in my robots.txt file?

Coding comments may be placed in the bobots.txt file be placing “#” before any text. An example is:

# specifies googlebot as the User-agent.

User-agent: googlebot

It is good practice to have your comments on a separate line than the directive. Also, limit white space at the beginning of directive lines.

Putting robots.txt to use:

Now that we know the functionality of robots.txt, let’s put it to practice.

If you want to allow ALL robots to visit ALL the pages on your website, you should use the “*” wildcard in your syntax in the robots.txt file.

User-agent: *
Disallow:

Disallow all indexing of your site, enter the following text in your robots.txt file.

User-agent: *
Disallow: /

Disallow robots from indexing pages within a directory named “billing”.

User-agent: *
Disallow: /billing/

Disallow robots from indexing pages within directories named “billing” and “address”.

User-agent: *
Disallow: /billing/
Disallow: /address/

Disallow googlebot from your site.

User-agent: googlebot
Disallow: /

Disallow googlebot from accessing you contact page (contact-us.html).

User-agent: googlebot
Disallow: /contact-us.html

Disallow googlebot from accessing you contact page (about-us/contact-us.html).

User-agent: googlebot
Disallow: /about-us/contact-us.html

Robots.txt in a nutshell:

Robots.txt is a useful tool when used to limit robot access to your site, such as content in work and sensitive information. At this time there is no endorsement by the Robots exclusion standard working group for an allow directive that would push robots to index portions of the site. This is still initiated by linking internally and externally to you web site.

About the author:

Nathan Drach is the founder of Server Union, LLC. ServerUnion is a US based technology company providing web hosting solutions from big to small. For more information and articles visit: www.serverunion.com
Freelance Writers
Article Submission
Directory Submission
Search Engine Optimization
Link Building
Affordable Web Hosting
SEO Company Uk
SEO Services
Link Building
777Media Directory
...more featured sites
: Maximize Your Backlinks
: Introduction to Link Building
: Manual Submission Directories
: 7 Ways To Get Links
: Robots.txt What is it?
 ... more articles
Is Directory Submission Obsolete?

Many people think directories have become obsolete. The truth however is that while their SEO importance has decreased in the last few years, they should still be an integral part of link building for new sites.

How To Get Higher Search Engine Rankings With Keyword-Rich Headings And Subheadings.
Some things that people use are keyword rich body texts (in which you have keywords placed throughout the document). Other times you will see people using description meta tags. However, it's only when you put all these things together that you are going to get the most out of your online website. Of course, there is one thing that you can do that can help get you ahead of the game that a lot of people do not pay attention to, and that is to use keywords in your headings.

Copyright Directory-Submission.net 2005 - 071850 Sitemap