The Robot Exclusion Standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner. Other terms for Web crawlers are ants, automatic indexers, bots, and worms or Web spider, Web robot, or—especially in the FOAF community—Web scutter and other web robots Internet bots, also known as web robots, WWW robots or simply bots, are software applications that run automated tasks over the Internet. Typically, bots perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human alone. The largest use of bots is in web spidering, in which an automated from accessing all or part of a website A website is a collection of related web pages, images, videos or other digital assets that are addressed relative to a common Uniform Resource Locator (URL), often consisting of only the domain name, or the IP address, and the root path ('/') in an Internet Protocol-based network. A web site is hosted on at least one web server, accessible via a which is otherwise publicly viewable. Robots are often used by search engines A web search engine is designed to search for information on the World Wide Web. The search results are generally presented in a list of results and are often called hits. The information may consist of web pages, images, information and other types of files. Some search engines also mine data available in databases or open directories. Unlike Web to categorize and archive web sites, or by webmasters to proofread source code. The standard is unrelated to, but can be used in conjunction with, Sitemaps The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling. A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs, a robot inclusion standard for websites.
Contents |
History
| This section does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be and removed. (July 2010) |
The invention of "robots.txt" is attributed to Martijn Koster, when working for WebCrawler WebCrawler is a metasearch engine that blends the top search results from Google, Yahoo!, Bing Search , Ask.com, About.com, MIVA, LookSmart and other popular search engines. WebCrawler also provides users the option to search for images, audio, video, news, yellow pages and white pages. WebCrawler is a registered trademark of InfoSpace, Inc around 1994. "robots.txt" was then popularized with the advent of AltaVista AltaVista is a web search engine owned by Yahoo!. AltaVista was once one of the most popular search engines but its popularity waned with the rise of Google, and other popular search engines, in the following years.
About the standard
If a site owner wishes to give instructions to web robots he must place a text file called robots.txt in the root of the web site hierarchy (e.g. www.example.com/robots.txt). This text file should contain the instructions in a specific format (see examples below). Robots that choose to follow the instructions try to fetch this file and read the instructions before fetching any other file from the web site. If this file doesn't exist web robots assume that the web owner wishes to provide no specific instructions.
A robots.txt file on a website will function as a request that specified robots ignore specified files or directories in their search. This might be, for example, out of a preference for privacy from search engine results, or the belief that the content of the selected directories might be misleading or irrelevant to the categorization of the site as a whole, or out of a desire that an application only operate on certain data.
For websites with multiple subdomains, each subdomain must have its own robots.txt file. If example.com had a robots.txt file but a.example.com did not, the rules that would apply for example.com would not apply to a.example.com.
Disadvantages
The protocol is purely advisory. It relies on the cooperation of the web robot Internet bots, also known as web robots, WWW robots or simply bots, are software applications that run automated tasks over the Internet. Typically, bots perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human alone. The largest use of bots is in web spidering, in which an automated, so that marking an area of a site out of bounds with robots.txt does not guarantee privacy. Some web site administrators have tried to use the robots file to make private parts of a website invisible to the rest of the world, but the file is necessarily publicly available and its content is easily checked by anyone with a web browser A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web. An information resource is identified by a Uniform Resource Identifier and may be a web page, image, video, or other piece of content. Hyperlinks present in resources enable users to easily navigate their browsers to.
There is no official standards body or RFC In computer network engineering, a Request for Comments is a memorandum published by the Internet Engineering Task Force (IETF) describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems for the robots.txt protocol. It was created by consensus in June 1994 by members of the robots mailing list (robots-request@nexor.co.uk). The information specifying the parts that should not be accessed is specified in a file called robots.txt in the top-level directory of the website. 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.
Automated Content Access Protocol
Main article: Automated Content Access Protocol Automated Content Access Protocol is a proposed method of providing machine-readable permissions information for content. This will allow automated processes (such as search-engine web crawling) to be compliant with publishers' policies without the need for human interpretation of legal terms. ACAP was developed by organisations that representACAP, which is a possible plug-in In computing, a plug-in is a small software computer program that extends the capabilities of a larger program. Plugins are commonly used in web browsers to enable them to play sounds and video clips, or automatically decompressing files. Add-on is often considered the general term comprising plug-ins, extensions, and themes as subcategories for the Robots Exclusion Standard, was released as v1.0 on November 30, 2006.
Examples
This example allows all robots to visit all files because the wildcard "*" specifies all robots:
User-agent: * Disallow:
This example keeps all robots out:
User-agent: * Disallow: /
The next is an example that tells all crawlers not to enter four directories of a website:
User-agent: * Disallow: /cgi-bin/ Disallow: /images/ Disallow: /tmp/ Disallow: /private/
Example that tells a specific crawler not to enter one specific directory:
User-agent: BadBot # replace the 'BadBot' with the actual user-agent of the bot Disallow: /private/
Example that tells all crawlers not to enter one specific file:
User-agent: * Disallow: /directory/file.html
Note that all other files in the specified directory will be processed.
Example demonstrating how comments can be used:
# Comments appear after the "#" symbol at the start of a line, or after a directive User-agent: * # match all bots Disallow: / # keep them out
Nonstandard extensions
Crawl-delay directive
Several major crawlers support a Crawl-delay parameter, set to the number of seconds to wait between successive requests to the same server:[1][2][3]
User-agent: * Crawl-delay: 10
Allow directive
Some major crawlers support an Allow directive which can counteract a following Disallow directive.[4] [5] This is useful when one disallows an entire directory but still wants some HTML documents in that directory crawled and indexed. While by standard implementation the first matching robots.txt pattern always wins, Google's implementation differs in that it first evaluates all Allow patterns and only then all Disallow patterns. Bing uses the Allow or Disallow directive which is the most specific.[6]
In order to be compatible to all robots, if one wants to allow single files inside an otherwise disallowed directory, it is necessary to place the Allow directive(s) first, followed by the Disallow, for example:
Allow: /folder1/myfile.html Disallow: /folder1/
This example will Disallow anything in /folder1/ except /folder1/myfile.html, since the latter will match first. In case of Google, though, the order is not important.
Sitemap
Some crawlers support a Sitemap directive, allowing multiple Sitemaps The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling. A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs in the same robots.txt in the form:[7]
Sitemap: http://www.gstatic.com/s2/sitemaps/profiles-sitemap.xml Sitemap: http://www.google.com/hostednews/sitemap_index.xml
Extended standard
An Extended Standard for Robot Exclusion has been proposed, which adds several new directives, such as Visit-time and Request-rate. For example:
User-agent: * Disallow: /downloads/ Request-rate: 1/5 # maximum rate is one page every 5 seconds Visit-time: 0600-0845 # only visit between 06:00 and 08:45 UTC (GMT)
The first version of the Robot Exclusion standard does not mention anything about the "*" character in the Disallow: statement. Some crawlers like Googlebot and Slurp recognize strings containing "*", while MSNbot and Teoma interpret it in different ways.[8]
See also
- BotSeer BotSeer is a Web-based information system and search tool that provides resources and services for research on Web robots and trends in Robot Exclusion Protocol deployment and adherence. It has been created and designed by Yang Sun, Isaac G. Councill, Ziming Zhuang and C. Lee Giles - search engine for robots.txt files
- Distributed web crawling Distributed web crawling is a distributed computing technique whereby Internet search engines employ many computers to index the Internet via web crawling. The idea is to spread out the required resources of computation and bandwidth to many computers and networks
- Focused crawler A focused crawler or topical crawler is a web crawler that attempts to download only web pages that are relevant to a pre-defined topic or set of topics. Topical crawling generally assumes that only the topic is given, while focused crawling also assumes that some labeled examples of relevant and not relevant pages are available. Topical crawling
- Internet Archive The Internet Archive is a non-profit digital library with the stated mission: "universal access to all knowledge." It offers permanent storage and access to collections of digitized materials, including websites, music, moving images, and books. The Internet Archive was founded by Brewster Kahle in 1996
- Library of Congress Digital Library project The Library of Congress National Digital Library Program is assembling a digital library of reproductions of primary source materials to support the study of the history and culture of the United States. Begun in 1995 after a five-year pilot project, the program began digitizing selected collections of Library of Congress archival materials that
- National Digital Information Infrastructure and Preservation Program The National Digital Information Infrastructure and Preservation Program is a national strategic program being led by the Library of Congress to preserve digital content. The program was mandated in 2000 by the U.S. Congress, and the Library is forming a national network of committed partners with defined roles and responsibilities that are
- Sitemaps The Sitemaps protocol allows a webmaster to inform search engines about URLs on a website that are available for crawling. A Sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs
- Nofollow and Spam in blogs Spam in blogs (also called simply blog spam or comment spam is a form of spamdexing. It is done by automatically posting random comments or promoting commercial services to blogs, wikis, guestbooks, or other publicly accessible online discussion boards. Any web application that accepts and displays hyperlinks submitted by visitors may be a target
- Spider trap A spider trap is a set of web pages that may intentionally or unintentionally be used to cause a web crawler or search bot to make an infinite number of requests or cause a poorly constructed crawler to crash. Web crawlers are also called web spiders, from which the name is derived. Spider traps may be created to "catch" spambots or
- Web archiving Web archiving is the process of collecting portions of the World Wide Web and ensuring the collection is preserved in an archive, such as an archive site, for future researchers, historians, and the public. Due to the massive size of the Web, web archivists typically employ web crawlers for automated collection. The largest web archiving
- Web crawler A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner or in an orderly fashion. Other terms for Web crawlers are ants, automatic indexers, bots, or Web spiders, Web robots, or—especially in the FOAF community—Web scutters
- Meta Elements Meta elements are HTML or XHTML elements used to provide structured metadata about a Web page. Such elements must be placed as tags in the< code>head section of an HTML or XHTML document. Meta elements can be used to specify page description, keywords and any other metadata not provided through the other head elements and attributes for Search Engines
References
- ^ "How can I reduce the number of requests you make on my web site?". Yahoo! Slurp. http://help.yahoo.com/l/us/yahoo/search/webcrawler/slurp-03.html. Retrieved 2007-03-31.
- ^ "MSNBot is crawling a site too frequently". Troubleshoot issues with MSNBot and site crawling. http://search.msn.com/docs/siteowner.aspx?t=SEARCH_WEBMASTER_FAQ_MSNBotIndexing.htm&FORM=WFDD#D. Retrieved 2007-02-08.
- ^ "About Ask.com: Webmasters". http://about.ask.com/en/docs/about/webmasters.shtml#15.
- ^ "Webmaster Help Center - How do I block Googlebot?". http://www.google.com/support/webmasters/bin/answer.py?answer=40364. Retrieved 2007-11-20.
- ^ "How do I prevent my site or certain subdirectories from being crawled? - Yahoo Search Help". http://help.yahoo.com/l/us/yahoo/search/webcrawler/slurp-02.html. Retrieved 2007-11-20.
- ^ "Robots Exclusion Protocol - joining together to provide better documentation". http://www.bing.com/community/blogs/webmaster/archive/2008/06/03/robots-exclusion-protocol-joining-together-to-provide-better-documentation.aspx. Retrieved 2009-12-03.
- ^ "Yahoo! Search Blog - Webmasters can now auto-discover with Sitemaps". http://ysearchblog.com/2007/04/11/webmasters-can-now-auto-discover-with-sitemaps/. Retrieved 2009-03-23.
- ^ "Search engines and dynamic content issues". MSNbot issues with robots.txt. http://www.serbanghita.com/search-engines-dynamic-content-issues.html. Retrieved 2007-04-01.
External links
- Robots Exclusion
- Using the robots.txt analysis tool
- About Robots.txt at the Mediawiki website
- List of Bad Bots - rogue robots and spiders which ignore these guidelines
- More info about Robots.txt
- Wikipedia's Robots.txt - an example
- Robots.txt Generator + Tutorial
- Robots.txt Generator Tool
- Robots.txt is not a security measure
- History of robots.txt -(how Charles Stross Charles David George "Charlie" Stross is a writer based in Edinburgh, Scotland. His works range from science fiction and Lovecraftian horror to fantasy. Stross was born in Leeds prompted its invention; original comment on Slashdot Slashdot is a technology-related news website owned by Geeknet, Inc. The site, which bills itself as "News for Nerds. Stuff that Matters", features user-submitted and ‑evaluated current affairs news stories about science- and technology-related topics. Each story has a comments section attached to it. Slashdot was founded in 1997 as a)
- BotSeer, Robots.txt search engine
Categories: World Wide Web
|
Wed, 30 Jun 2010 12:23:03 GMT+00:00
Search Engine Roundtable (blog) It should look something like: Microsoft said that BingBot will continue to respect and honor the msnbot directives in the robots.txt file, ...
417px x 609px | 16.00kB
[source page]
Screenshot 3 of RoboGen Standard Edition
Eldee
Fri, 30 Jul 2010 10:13:16 GM
RewriteEngine on RewriteCond $1 !^(index\.php|public|images|. robots\.txt. ) RewriteRule ^(.*)$ /index.php/$1 [L]. Once you have all the files in place, you can start creating your controller and view. Controller: charts.php ...
Q. do in to put the file in every level of my site or just in the root directory? basically do i need more than 1 robots.txt files on my site?
Asked by abc - Sat Mar 28 11:48:38 2009 - - 2 Answers - 0 Comments
A. Where to put it The short answer: in the top-level directory of your web server. The longer answer: When a robot looks for the "/robots.txt" file for URL, it strips the path component from the URL (everything from the first single slash), and puts "/robots.txt" in its place. For example, for "http://www.example.com/s hop/index.html, it will remove the "/shop/index.html", and replace it with "/robots.txt", and will end up with "http://www.example.com/r obots.txt". So, as a web site owner you need to put it in the right place on your web server for that resulting URL to work. Usually that is the same place where you put your web site's main "index.html" welcome page. Where exactly that is, and how to put the file there, depends on… [cont.]
Answered by DeadlyFishy - Sat Mar 28 11:56:18 2009


