Glossary
What is robots.txt?
robots.txt is a plain text file at the root of a website, at /robots.txt, that tells crawlers which parts of the site they may fetch.
A safe example
User-agent: *
Disallow: /app/
Sitemap: https://example.com/sitemap.xml
This lets every crawler read everything except addresses that start with /app/, and says where the sitemap is.
What it can’t do
- It doesn’t hide a page from search results. A blocked address can still be listed, without a description, if other sites link to it. To keep a page out of results, use noindex and leave the page crawlable so the tag can be read.
- It isn’t security. The file is public, and following it is voluntary. Anything private needs a sign-in.
The mistake that costs the most
Disallow: / blocks the whole site. It is often left over from a staging site, where it was there on purpose. If a new site doesn’t show up in search after a few weeks, this file is the first thing to read.
Other things to know
- Don’t block your CSS and JavaScript. Search engines render pages and need them.
- A missing robots.txt is fine: it means everything may be crawled.
- Each subdomain has its own file.
- AI crawlers have their own names, such as
GPTBot, and can be allowed or refused in the same way.
Go further
-
Guide
SEO for early-stage startups, the short list
What is worth doing for search in the first months of a new product, and what can wait.
-
Free tool
Website launch checker
Checks a page for the things directories and search engines read: title, description, preview image, robots.txt, sitemap and more.
Related terms
Want the submissions done for you?
Our AI agent submits your product and reports every listing. One payment, from $39.