Robots.txt: plainly explained.

Robots.txt is a text file at a site's root that tells search engine crawlers which pages or sections they may or may not access.

SEO & GEO · Updated Aug 17, 2026

DEFINITION

Robots.txt is a text file at a site's root that tells search engine crawlers which pages or sections they may or may not access.

CATEGORY

SEO & GEO

RELATED

Sitemap, Canonical Tag

Summarize this page with AI

01

What robots.txt is

Robots.txt is a plain text file placed at the root of a website that tells search engine crawlers which parts of the site they are allowed to access. When a well behaved crawler like Googlebot visits, it checks this file first and follows its instructions before fetching anything else. It is one of the oldest and simplest tools for managing how automated visitors interact with a site.

The file lives at a fixed location, yoursite.com/robots.txt, and uses a small, standardised syntax. It is publicly visible to anyone, which is an important point: robots.txt guides crawlers, it does not hide or secure anything.

Despite its age, robots.txt remains one of the first things a crawler looks for, which gives a very small file a lot of influence. It is part of a long standing agreement between site owners and well behaved bots, a voluntary protocol rather than an enforced barrier. That voluntary nature is central to understanding both what it is good at and where it stops, because a crawler that chooses to ignore it faces no technical obstacle.

02

What robots.txt is for

Its main purpose is crawl management. Large sites have pages that add no value in search, such as internal search results, admin areas, filtered duplicate URLs or staging content. Telling crawlers not to spend time on these helps them focus their limited crawl budget on the pages that matter, which is especially useful on big sites.

It is also used to point crawlers to the sitemap, and to keep bots away from sections that would waste resources. Used well, it makes crawling more efficient and keeps low value URLs out of a crawler's path.

Crawl budget is the concept that makes robots.txt genuinely useful on larger sites. Search engines allocate a finite amount of crawling to each site, and every request spent on a useless URL is a request not spent on a page that matters. By steering bots away from endless filtered variations, internal search pages and other low value paths, you help them reach and refresh your important content faster, which can have a real effect on how quickly changes are picked up.

03

How robots.txt works

The file is a list of rules grouped by which crawler they apply to. The core directives are simple.

  • User-agent: names the crawler a rule applies to, with an asterisk meaning all crawlers.
  • Disallow: tells the crawler not to access a path.
  • Allow: makes an exception within a disallowed area.
  • Sitemap: points to the location of the site's sitemap.

For example, a rule can block all crawlers from an admin folder while allowing everything else. The syntax is forgiving but literal, so a small mistake in a path can have a big effect.

04

A crucial misunderstanding

The most common and dangerous mistake is treating robots.txt as a way to hide pages or keep them out of search. It does neither. Blocking a page in robots.txt only stops compliant crawlers from fetching it; the URL can still appear in search results if other pages link to it, just without a description. And because the file is public, listing a secret path actually advertises it.

To keep a page out of search results, you use a noindex directive on the page instead, which requires the crawler to be able to access it. To protect private content, you use real authentication. Robots.txt is a traffic guide for bots, not a lock.

The confusion between blocking and hiding causes some of the most damaging mistakes in SEO. Because a blocked page can still be indexed as a bare URL when other sites link to it, and because the crawler can no longer read a noindex tag it is forbidden from fetching, the two tools can even work against each other. The reliable rule is to let a crawler read a page you want removed, so it can see the noindex, and to reserve robots.txt for steering rather than suppression.

05

Robots.txt risks and best practices

Because a single line can block an entire site, robots.txt deserves care. A stray disallow rule left over from a staging environment can quietly remove a site from search, one of the most damaging and easily missed SEO errors. The best practice is to keep the file minimal, test it, and never block resources like CSS or JavaScript that engines need to render the page.

Regular checks matter. Search consoles offer tools to test the file and see how crawlers interpret it, so verifying after any change is a sensible habit, especially before and after a site launch.

06

Robots.txt at BeBranded

At BeBranded we treat robots.txt as a small file with outsized consequences, and we review it on every Webflow project we ship. We make sure a staging site's blanket disallow never survives into production, that the sitemap is referenced, and that nothing engines need to render the page is blocked. We combine it correctly with noindex directives for genuine deindexing, since the two tools do different jobs. The result for clients is a site that crawlers can access cleanly and efficiently, with no accidental blocks quietly costing them visibility.

We document the intent behind each rule too, so a line added for a good reason is not mistaken later for one that can be removed. A robots.txt without context invites accidental changes, and on a live site those changes are easy to make and slow to notice. Keeping it minimal, commented and reviewed at launch is a small habit that prevents some of the most avoidable losses in search visibility.

FAQ

Questions about Robots.txt.

Another question?

Write to us
What is robots.txt used for?
Robots.txt is a text file at a site's root that tells search engine crawlers which pages or sections they may or may not access. It helps manage crawl budget by keeping bots away from low value URLs and can point them to the sitemap.
Does robots.txt keep a page out of Google?
No. Blocking a page in robots.txt only stops compliant crawlers from fetching it, but the URL can still appear in results if other pages link to it. To keep a page out of search, use a noindex directive on the page instead.
Where is the robots.txt file located?
It sits at a fixed location, the root of the domain, so it is always found at yoursite.com/robots.txt. It must be at the root to be recognised, and it is publicly viewable by anyone who visits that URL.
What is the difference between robots.txt and noindex?
Robots.txt controls whether a crawler accesses a page, while noindex controls whether an accessed page appears in search results. To deindex a page, the crawler must be allowed to read it and see the noindex, so the two should not be combined on the same URL.
Can robots.txt hurt my SEO?
Yes, if misconfigured. A stray disallow rule, often left over from staging, can block an entire site from crawling and quietly remove it from search. Blocking CSS or JavaScript can also stop engines rendering pages, so the file needs careful review.
Should I block AI crawlers in robots.txt?
You can. Many AI bots respect robots.txt, so you can allow or disallow them by user-agent depending on whether you want your content used in AI training or answers. It is a policy choice that depends on your goals for visibility.

Related

Related terms, and where to go next.

AI-friendly technical SEO: building a solid foundation to appear in AI engines
SEO

AI-friendly technical SEO: building a solid foundation to appear in AI engines

Learn how to technically optimize your website for AI engines like ChatGPT and Perplexity. SEO checklist, Bing indexing, structured data.

Read the article
BeBranded
Webflow

Is Webflow good for e-commerce? Benefits, limits and who it suits in 2026

Is Webflow good for e-commerce in 2026? Plans and item limits, the real benefits and limitations, Webflow vs Shopify and WooCommerce, hybrid setups, how to disable e-commerce on a Webflow site, and a decision checklist.

Read the article
Why choose Webflow for your website in 2026?
No-Code

Webflow: what is it exactly? Complete guide (2026)

What is Webflow? Who is it for, what it can do, 2026 updates, real limitations, and when to get help. Clear guide for SMBs, startups and marketing teams.

Read the article

Let’s talk

Tell us what you want to build.

Thirty minutes with the people who will work on your project. You leave with a clear view of the scope, the timeline and the next steps.

What happens next

  1. 1A 30-minute callWe listen to your goals, your constraints and your context.
  2. 2A clear scopeWe map what is worth doing first, and what it takes.
  3. 3A costed proposalYou decide, with no commitment and no sales pitch.