robots.txt

robots.txt is a plain text file at the root of a website that tells crawlers which URLs they may request. Its rules, standardized as the Robots Exclusion Protocol, are grouped by crawler name and mainly manage crawl traffic. Compliance is voluntary, and the file neither protects private content nor reliably keeps pages out of search results.

In practice

The mettevo.com robots.txt has two groups: one for named AI crawlers and one for User-agent: *. A crawler follows the group that matches its name, so the rules can differ between them.

Our AI group disallows /api/. The general group deliberately leaves it open, because the preview images for our service pages and blog articles come from /api/og. Googlebot and link preview fetchers read the general group in our file, so a tidy-looking Disallow: /api/ there would block those images. The lesson we took: before closing a path, find out which public files it serves.

Not to be confused with

ConceptHow it differs from robots.txt
noindexA meta tag or HTTP header that keeps a page out of search results. A crawler has to be able to fetch the page to see it.
Password protectionActually restricts access. RFC 9309 says robots.txt rules are not a form of access authorization.
XML sitemapLists URLs you want search engines to find. robots.txt says what crawlers may request.
llms.txtA proposed Markdown file that points language models to useful content. It does not set crawling rules.

Compared with

robots.txt Disallownoindex
ControlsCrawlingIndexing
Where it livesOne file for a hostEach page or response
Can the URL still appear in Google?Yes, if other pages link to itNo, once Google has crawled the page and read the rule

Where Mettevo applies it

Related terms

Sources

Are You Ready To Grow Your Website?

Understanding the ins and outs of website growth, we help ensure that your site grows over time with ever-increasing reach and accessibility. Not only do we employ the latest digital marketing techniques for driving traffic directly to your website, but our strategies also focus on gaining loyalty from those visitors so they come back again and again.
Leave your contacts to get a comprehensive and aggressive digital marketing plan taking your business to new heights.