Home » Blogging about SEO

How to Generate Robots.txt for your website

Written by Amit Bhawani on Wednesday, 20 August 20085 Comments
ADVERTISEMENTS

Robots.txt is a very important file when you are looking for better search engine traffic because bots visit your websites and collect complete information & data and keep a copy of your webpages in their servers. In order to allow access to your webpages you need to generate a Robots.txt file which allows/disallows bots access to files/directories on your directories.

Robots.txt File GenerationSome Robots.txt Templates for easy use!

Allow All Bots :(recommended)
User-Agent: *
Allow: /

Block all robots
User-Agent: *
Disallow: /

The following example “/robots.txt” file specifies that no robots should visit any URL starting with “/cyberworld/map/” or “/tmp/”, or /foo.html:
# robots.txt for http://www.example.com/
User-agent: *
Disallow: /cyberworld/map/ # This is an infinite virtual URL space
Disallow: /tmp/ # these will soon disappear
Disallow: /foo.html

This example “/robots.txt” file specifies that no robots should visit any URL starting with “/cyberworld/map/”, except the robot called “cybermapper”:
# robots.txt for http://www.example.com/
User-agent: *
Disallow: /cyberworld/map/ # This is an infinite virtual URL space
# Cybermapper knows where to go.
User-agent: cybermapper
Disallow:

This example indicates that no robots should visit this site further:
# go away
User-agent: *
Disallow: /

Just add the above codes in a text file and save it as robots.txt and upload to your root folder of your hosting account using your ftp and its done. You have allowed/disallowed all the bots using the above file.

We will send you some more information related to How to Generate Robots.txt for your website

5 Comments »

  • Abhilash Pillai said:

    Nice post for setting up the Robots.txt file. Would greatly help newbies :)

  • Amar said:

    OMG

    There are so many things you can do for your site,, i never knew what seo is all about

    mr. admin thanks for all this useful tips

    no body likes to share this tips but you do :)

    thats why we keep coming here

    Keep it up

    thanks

  • Sarath said:

    Hi, the information is great. Actually its secret. I appreciate your help, thats why I subscribed for your newsletter. Do let us know about more………

  • Sherry said:

    thank you for providing such important post for me. Now I understand more.

  • Venkat said:

    The robots.txt file is a very important file and is the key to the Search Engine Bots, so one can also try out the auto robots.txt file generator available as a service with the Google Webmaster Tools, at google.com/webmasters/ login using your gmail id and under Tools you will find Generate robots.txt

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.