Sometimes you want parts of your website to be excluded from search engine listings. You don't want the search engine to see these pages in your website. There could be a lot of reasons for this like the pages are incomplete or not ready for search engine listing. Or maybe you want to keep the information private.
If you use google adsense and you use their search engine function on your website you also have to exclude the search results page from the google index bot. This is a requirement of google. So as a minimum you should have this noted in your robots.txt file.
Putting a robots.txt file is easy and I am going to show you exactly how to do it.
Let's Make a robots.txt file
What is a robots.txt file? It is a simple text file that you create in a simple word processor program like notepad. It has commands in it that tell spiders specific instructions like don't crawl certain pages in the site.
A simple robots.txt file
Create a document in notepad and save it as robots.txt