SEO

Robots.txt

A plain text file placed at the root of a website that instructs automated web crawlers which pages or files they are permitted or forbidden to request.

also called: robots file

// definition

When a site owner needs to manage automated access, a plain text file placed in the web server root directory communicates access rules using the Robots Exclusion Standard. This document contains specific directives, including User-agent and Disallow statements. These directives tell well-behaved web spiders which server pathways they are permitted or forbidden to request.

Human visitors and standard web browsers completely ignore these instructions. While the file stops crawlers from downloading specified resources, it differs from indexing directives. It cannot guarantee a page remains excluded from search engine result listings if external websites link to that location.

// Robots.txt vs. 301 redirect

A robots.txt file blocks automated crawlers from requesting specific locations, whereas a 301 redirect permanently sends both users and search bots to a different web address. For example, a company might use robots.txt to prevent search engine spiders from crawling an internal SaaS billing dashboard URL entirely.

In contrast, a 301 redirect would forward anyone attempting to access an old billing dashboard path to a new dashboard location. Unlike a redirect, a robots.txt file preserves server bandwidth without altering user navigation or changing destination web addresses for human web browsers.

// why it matters

Managing server load requires preserving crawl budget, which is the limited time search engine bots spend requesting pages on a domain. Restricting access to low-value areas like administrative portals, duplicate staging environments, or internal search results helps search engines prioritize high-value pages.

Misconfiguring this file creates severe business risks. Accidentally blocking search engine crawlers from scanning an entire domain causes the website to drop from search engine result pages, cutting off organic traffic and harming overall revenue.

Questions and Answers

Does a robots.txt file completely remove a page from search results?
No, a robots.txt file does not guarantee a page stays out of search results. It stops search engine crawlers from requesting or downloading the resource. However, if other websites link to that URL, search engines can still index and display the page address in listings without crawling its contents.
How does a robots.txt file handle checkout paths on e-commerce sites?
An e-commerce site sets a Disallow rule for the checkout pathway, such as Disallow: /checkout/, under a User-agent line. Search engine spiders skip those shopping cart pages. This action preserves server bandwidth for human customers and prevents crawlers from scanning private transactional areas.