Official horizontal UNEMPRENDE logo with dark text on a light background
Black Friday

Robots.txt

What is Robots.txt: a text file located in the root directory of a domain that tells crawlers which sections of the site they can and cannot crawl.

What is Robots.txt?

The file robots.txt It is a plain-text file located in the root directory of your domain (for example, tudominio.com/robots.txt) that tells automated crawlers which directories or paths they can crawl and which ones they should skip. It is part of the robot exclusion protocol and helps manage your server's resource usage and focus crawling on the valuable sections of your website.

How Web Crawlers Interpret Directives

Every time a bot—such as Googlebot or the crawlers of AI-powered search assistants—visits your site, it first checks this file in the web server. Its basic rules use simple directives: User-agent identifies the tracker to which the instruction is addressed, Disallow specifies which paths it should not explore and Allow allows for specific exceptions within a restricted folder.

It's also the standard place to indicate the location of your XML sitemap via the line Sitemap:. This is even more relevant today because website owners use tracking controls to determine how modern search engines interact with their sites—a topic we explore in depth in our guide on Website Metrics and Analytics vs. AI-Powered Search.

Common robots.txt Mistakes You Should Avoid

Because it's a small but powerful file, a single mistyped line can make your site invisible on Google for weeks. Keep these four precautions in mind:

  • Do not block the entire site in production: Check to make sure there isn't a Disallow: / inherited from a test environment after launching your website.
  • Do not use it to hide confidential information: The file is public and only suggests "do not track"; to protect private information, use authentication or server permissions.
  • Do not confuse tracking blocking with deindexing: If you want to remove a page that's already been indexed by Google, use the tag noindex; block it at robots.txt prevents the bot from reading that command.
  • Allow CSS and JavaScript files: Search engines need access to styles and scripts to render your mobile design correctly.

How to Check If Your Rules Are Working Properly

After editing the file or migrating an online store, open tudominio.com/robots.txt in your browser and validate the rules in Google Search Console. A two-minute verification prevents silent drops in organic traffic and keeps crawling focused on your commercial pages.

More terms related to SEO

See More Terms

Resources and Support

We're Here for You Every Step of the Way

We offer a variety of resources to help you become familiar with and understand your resources and opportunities, and to enjoy the benefits of having a digital infrastructure. In addition, we have social programs to support startups and projects with exclusive benefits.