Mikes Notes
The robots.txt goes to the root of every website. e.g.
- www.example.com/robots.txt
- https://example.com:8181/robots.txt
- ftp://example.com/robots.txt
Resources
- https://en.wikipedia.org/wiki/Robots.txt
- https://en.wikipedia.org/wiki/Sitemaps
- https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt
- https://developers.google.com/search/docs/crawling-indexing/robots/intro
- https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt
- https://www.robotstxt.org/robotstxt.html
- https://en.wikipedia.org/robots.txt
- https://www.notetab.com/
Description
"robots.txt is the filename used for implementing the Robots Exclusion Protocol, a standard used by websites to indicate to visiting web crawlers and other web robots which portions of the website they are allowed to visit.
The standard, developed in 1994, relies on voluntary compliance. Malicious bots can use the file as a directory of which pages to visit, though standards bodies discourage countering this with security through obscurity. Some archival sites ignore robots.txt. The standard was used in the 1990s to mitigate server overload. In the 2020s many websites began denying bots that collect information for generative artificial intelligence.
The "robots.txt" file can be used in conjunction with sitemaps, another robot inclusion standard for websites." - Wikipedia
Maximum size of a robots.txt file
The Robots Exclusion Protocol requires crawlers to parse at least 500 kibibytes (KiB) of robots.txt files, which Google maintains as a 500 kibibyte file size restriction for robots.txt files .
Examples
User-agent: * Disallow: /:
User-agent: * Allow: /
User-agent: * Disallow: /cgi-bin/ Disallow: /tmp/ Disallow: /junk/
User-agent: * Disallow: /directory/file.html
# This robots.txt file controls crawling of URLs under https://example.com. # All crawlers are disallowed to crawl files in the "includes" directory, such # as .css, .js, but Google needs them for rendering, so Googlebot is allowed # to crawl them. User-agent: * Disallow: /includes/ User-agent: Googlebot Allow: /includes/ Sitemap: https://example.com/sitemap.xml
No comments:
Post a Comment