The robots.txt is a small text file located in a website’s root directory that tells search engine crawlers which areas they are allowed to visit and which they are not. This allows website operators to specify that certain directories or individual pages should not be crawled.
Typical examples include technical sections, certain filter pages, or other URLs that are irrelevant for crawling.
A common misconception about the robots.txt file: The text file controls when the crawler visits a page, but it does not determine whether a page will still appear in search results. To reliably keep a page out of the index, other measures are required.
Furthermore, the robots.txt file is not an access control mechanism. Reputable, standards-compliant crawlers follow its instructions, whereas malicious crawlers may ignore them.