Creating a robots.txt file is simple, and gives you control over how your Website is crawled by Search Engines. You can use notepad or any text editor. Each entry consists of two lines:
User-Agent: [Spider or Bot name]
Disallow: [Directory or File Name]
The idea behind this concept is simple -- Webpages which you would like to keep private from the rest of the world (and Search Engines) should be handled via robots.txt. Spider-based Robots will ignore these Webpages and thus will not include any of Links or content on the Search Results.
Examples: