What Is Robots.txt?
It is a text file located in the root directory that tells search engine bots which parts of the site they can crawl or should not crawl. If misconfigured, it can cause important pages to be blocked by mistake.
Robots.txt
noun · Technical SEO
Robots.txt — Detailed Explanation
Robots.txt is a simple text file located in the root directory of a website that tells search engine bots which parts of the site they can crawl or should not crawl. It is based on the Robots Exclusion Protocol standard and allows site administrators to direct crawl traffic.
This file helps direct crawl budget toward more valuable pages by preventing the crawling of areas such as sensitive admin panels, search result pages, or URLs with unnecessary parameters. However, Robots.txt does not completely hide a page from search results; it only blocks crawling, so it must be used together with the noindex tag to prevent indexing.
A small typo in the Robots.txt file can cause the entire site to become unintentionally uncrawlable. For this reason, it is critical to check the file regularly and test it after changes.
Why It Matters
A properly configured Robots.txt helps search engine bots focus on the site's most valuable pages, making crawl budget use more efficient. Misconfiguration, however, can cause important pages to be blocked by mistake and traffic to drop significantly.
How to Apply It
- 1Create the Robots.txt file in the site's root directory (for example, site.com/robots.txt) and verify that it is accessible.
- 2Define disallow rules for admin panels, search result pages, and unnecessary parameterized URLs.
- 3Specify the location of the sitemap file in Robots.txt to make discovery easier for bots.
- 4Check with the robots.txt test tool in Search Console that the rules are working correctly.
- 5Periodically make sure that important pages are not being blocked by mistake.
Example
When a new site is launched, the development team accidentally moves the 'Disallow: /' rule from the test environment to production. This error prevents the entire site from being crawled by search engines, and organic traffic drops to near zero within a few days; after the error is noticed and fixed, the site is gradually crawled again.
Common Mistakes
- Accidentally blocking the entire site with the 'Disallow: /' rule.
- Confusing Robots.txt with the noindex tag and thinking that blocking crawling also blocks indexing.
- Putting the file live without testing it after changes.
- Not specifying the sitemap location in the file and making discovery harder for bots.
Related Terms
Technical SEO Other Terms in This Category
Put It Into Practice
Is Robots.txt Implemented Correctly on Your Site?
Let's review your website's SEO health together, in plain language.
Frequently Asked Questions About Robots.txt
We answer the most common questions about this term.
Leave SEO to the Experts
Learning the terms is a start; seeing results takes a professional strategy. Let's analyze your website together.
- Reply within 24 hours
- Transparent pricing
- No commitment