SEO FAQ

How do I write the robots.txt?

Trust level: Proven and confirmed

As you may, know the robots.txt is a tool used by the search engines to see which pages not to index. It is useful if you have sensitive information or other pages you don't wish to get indexed - that is all it does.

It is simply a text file names robots.txt located in the root.

It contains a line for user-agent and then what to disallow or allow.

Example:

User-agent: *
Disallow: /password.html
Disallow: /temp/

As the * is a wildcard the above means that all user-agents will index all pages except the file password.html and the directory temp and it's content.

Here is another example when disallowing all from a bad spider.

User-agent: badspider
Disallow: /
 
Answer provided by:

Jim Westergren

SEO FAQ

  Submit an answer or add information
to the question: How do I write the robots.txt?


Only the top high quality submissions are approved. If you don't know SEO it is not needed that you waste your time here.

Trust level:
It is important that you select the correct one.
Answer:
Thousands of people will read what you write here and you represent it with your name.
Only unique content, no cut and paste (I will check with Google - don't want this site be hitten by the duplicate content filter).
Don't write something that was already answered to this question earlier but you may add information to earlier answers.
Any promotion for any company/person etc. will be edited out.
HTML can be used but sparingly. Use <em> instead of <strong> to emphasize words. But feel free to use headings, lists and vital neutral links.
Name:
Personal name, company name or forum nick name only. This is not for your keywords, sorry.
URL:
Only accepted to site related to SEO and you.
For example: SEO company, personal SEO oriented blogg or forum profile of SEO forum.
E-mail:
Optional. If you provide one I can contact you with editing questions and let you know if your answer was approved.

Please verify that all is ok before submitting.



SEO FAQ

Although great efforts are taken to ensure the answers posted in this FAQ are true, no guarantee is made that it is so and no responsibility is taken by this site nor the authors concerning your rankings or SEO activities.