What is a Robots.txt File?

What is a Robots.txt file?

The robots.txt file or ‘The Robots Exclusion Protocol’ is a standard protocol which gives instructions about your website to search engine bots/spiders.  It is a text (hence the .txt) file, think notepad, that is placed within the website heirarchy.

The robots.txt file is mainly used to block or disallow bots/spiders from visiting a folder or files on your website that you don’t want to have indexed in the search engine results.

Example of a Robots.txt File:

User-agent: *
Disallow: /cgi-bin/
Disallow: /images/
Disallow: /tmp/
Disallow: /private/

This code tells all robots, or User-agents,  not to enter four directories (cgi-bin, images, tmp, and private) of a website:

How it Relates To SEO


Download Our Free SEO for Beginers e-Book

 When Google, Bing, and Yahoo are deciding what websites to rank in their search engine they use data that is obtained by their “Spiders” or “Robots”.  These robots are sent through your website to extract data that helps the search engines determine what your website is about.  Before the robot starts to search your website it will look for the Robots.txt file.  Giving the webmaster the ability to tell the robot what to look for and what not to look for.

There are many files within the root of the website that have nothing to do with the subject matter, or Keywords, of the website so there is no point in having the search engine robots document those files. For example, the files that make up a WordPress site.  While those files are important and are what make the website possible, they probably do not relate to what you want your site to rank for on Google.

The Robots.txt file is simliar to a Sitemap.xml file that I will cover in my next blog post.

I hope this answered the question, What is a Robots.txt file?

By |2012-04-19T18:54:46+00:00April 20th, 2012|

About the Author:

Jason Fox - Real Estate Marketing Business: We build WordPress Real Estate Websites with IDX Me: #GoHawks, #BringBackTheSonics, #MaybeNextYearMariners, #ILoveMyKids #SeattleSunLover #SeattleWaterLover #BFF Blog: Focuses on Wordpress Websites, Content Management, SEO Services, SEM Campaigns, Social Media Marketing, Email Marketing, Beautiful Design, IDX, and more.

We would love to hear from you...