Robots Exclusion Standard Article Index for
Robots
Website Links For
Robots
 

Information About

Robots Exclusion Standard




The robots.txt protocol was created by consensus in June 1994 by members of the robots mailing list (robots-request@nexor.co.uk). There is no official standards body or RFC for the protocol.

The protocol is purely advisory. It relies on the cooperation of the web robot, so that marking an area of your site out of bounds with robots.txt does not guarantee privacy. Many web site administrators have been caught trying to use the robots file to make private parts of a website invisible to the rest of the world. However, the file is necessarily publicly available and is easily checked by anyone with a web browser.

The robots.txt patterns are matched by simple substring comparisons, so care should be taken to make sure that patterns matching directories have the final '/' character appended: otherwise all files with names starting with that substring will match, rather than just those in the directory intended.


EXAMPLES

  • " specifies all robots.


  • Disallow:


This example keeps all robots out:

  • Disallow: /


The next is an example that tells all crawlers not to enter into four directories of a website:

  • Disallow: /cgi-bin/

Disallow: /images/
Disallow: /tmp/
Disallow: /private/

Example that tells a specific crawler not to enter one specific directory:
User-agent: BadBot
Disallow: /private/


WARNING

Do not use


This is not a stable standard extension. For example, although Google claims to support such use , it in fact does not .

Instead, use:
Disallow: /

if you really want to block access to your web site to all robots.


ALTERNATIVES

robots.txt is older and more widely accepted, but there are other methods (which can be used together with robots.txt) that allow greater control, like disabling indexing of images only or disabling archiving of page contents.


HTML meta tags for robots

HTML Meta Tag s can be used to exclude robots according to the contents of web pages. Again, this is purely advisory, and also relies on the cooperation of the robot programs. For example,



within the HEAD section of an HTML document tells search engines such as Google , Yahoo! , or MSN to exclude the page from its index and not to follow any links on this page for further possible indexing.

(See HTML Author's Guide to the Robots META tag .)


Directives within a page

The tag is a non-standard HTML tag whose intent is to indicate portions of a page that should not be indexed, such as common navigation or footer. Using it without a namespace will make XHTML pages invalid.

Google uses comments for the same purpose: ...


SEE ALSO



EXTERNAL LINKS