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 atrobots.txtprevents 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
Broken Link
What Is a Broken Link: A hyperlink that points to a nonexistent page or a 404 error, affecting navigation and SEO crawling.
SEO (Search Engine Optimization)
What is SEO (Search Engine Optimization): a set of technical and content-related optimizations designed to improve your website's organic visibility.
On-Page SEO
What is On-Page SEO: optimizations within your own website—titles, headings, internal links, and structure—for search engines.
Off-Page SEO
What Is Off-Page SEO: Actions taken outside your website—such as mentions and high-quality backlinks—that strengthen your domain’s authority.
Meta Description
What is a Meta Description: a brief summary in HTML that describes a page and determines the snippet displayed in search engines.
Alternative Text (Alt Text)
What Is Alternative Text (Alt Text): An HTML attribute that describes an image for screen readers, accessibility, and image SEO.
Keywords
What Are Keywords: terms and phrases that people search for on Google to find answers to their questions or compare services.
Sitemap (Site Map)
What is a sitemap: an XML file containing the public URLs of your website to make it easier for search engines to discover and crawl your site.
Resources and Support
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.
