Amit Bhawani Blog

Stay Updated!

Powered by Genesis

You are here: Home / SEO Blog / How to Generate Robots.txt for your website

How to Generate Robots.txt for your website

August 20, 2008 by Amit Bhawani

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.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook

Related

About

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani I am also the Editor-in-Chief of PhoneRadar & Master Gadgets

About Amit Bhawani

My name is Amit Bhawani and here I like to share my internet/tech experience with my online readers. You can follow me on Twitter, Facebook & Instagram at @AmitBhawani

Comments

  1. Abhilash Pillai says

    August 20, 2008 at 8:06 am

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

  2. Amar says

    August 20, 2008 at 11:42 am

    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

  3. Sarath says

    August 21, 2008 at 10:49 am

    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………

  4. Sherry says

    August 23, 2008 at 3:25 pm

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

  5. Venkat says

    August 26, 2008 at 5:58 am

    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

  6. Hari says

    June 13, 2009 at 10:09 am

    My blog is not getting google page rank, its 6 months old. What should I do?

    • Amit Bhawani says

      June 13, 2009 at 1:34 pm

      @Hari, Tell me one thing why are you concerned about the Google Toolbar Page Rank? Is it really going to help you in getting Traffic or any Money?

  7. Hari says

    June 17, 2009 at 1:31 pm

    You are right. But I wanted to know what that I missing out in not getting the google page rank.
    And also please give me some tips in getting Traffic to my site.

    • Amit Bhawani says

      June 17, 2009 at 2:56 pm

      For traffic and other questions this is not the right post to continue replying here. You need to check out our help desk and post your questions there and we will help you with the best solution http://www.amitbhawani.com/help/

  8. selva says

    February 19, 2010 at 12:26 pm

    hi, Is it possible to create a robot file for the blog spot?

  9. chalikovas says

    April 17, 2010 at 5:53 pm

    Hi friend this is really interesting. But still i have some doubts it is possible to create it,…

Timeline

Something Exciting Coming on 1st May 2026!

Recommended To Read

  • How to Find your WiFi Signal Strength & Dead spots in your Home – Best Apps
  • The Wuhan Corona Virus Effect in India – How to Stay Safe
  • This Blogger Lost 25Kgs with this Secret Strategy that Includes a Fitness Tracker
  • Making Money on YouTube, MCN, Useful Tools, Tips & Success Stories
  • The #JaguarPerformance Experience that was Mind Blowing