Home » Wordpress, Wordpress Plugin » How to edit Robots.txt file

How to edit Robots.txt file

This is question is the most asked question all over the net and even some of beingPC readers have asked it too, therefore I though of sharing this with you.

Before starting let’s firs get an insight on what a Robot.txt file is -

Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol.

These instructions may be to hide some information or to let bots to access some, totally depends on your requirement.

Following are a few examples of what you can type in a robots.txt file.

Ban all robots

User-agent: *
Disallow: /

Allow all robots

To allow any robot to access your entire site, you can simply leave the robots.txt file blank, or you could use this:

User-agent: *
Disallow:

Ban specific robots

To ban specific robots, use the robot’s name. Look at the list of robot names to find the correct name. For example, Google is Googlebot and Microsoft search is MSNBot. To ban only Google:

User-agent: Googlebot
Disallow: /

Allow specific robots

As in the previous example, use the robot’s correct name. To allow only Google, use all four lines:

User-agent: Googlebot
Disallow:

User-agent: *
Disallow: /

Ban robots from part of your site

To ban all robots from the page “Archives” and its subpages, located at http://yourblog.example.com/archives/,

User-agent: *
Disallow: /archives/

Simple enough!!! For those you can use a wordpress plugin try KB Robots.txt







Popular on Web Today

5 Responses to " How to edit Robots.txt file "

  1. TechChunks says:

    Great post for new webmasters. I love Robots!

  2. Sumon says:

    Great Article. Thanks for share this :)

  3. ehackz says:

    Hey Great Post

    visit http://beingpc.com/robots.txt to see this blog’s robots.txt file

  4. investing in precious metals says:

    Cheers for the good information and facts enclosed within your site, this is a little question for your blog site subscribers. Who said the following quote? . . . .A house divided against itself cannot stand.

Leave a comment