Skip to main content
miji.be

Robots.txt

A text file placed at a website's root that instructs search engine crawlers which pages they are allowed or disallowed to access.

May 1, 2026 / About 1 min read

SEO

Robots.txt is a plain text file placed at the root of a website that provides instructions to web crawlers about which parts of the site they should or should not access. The file follows the Robots Exclusion Protocol, a convention that well-behaved crawlers respect, though it is advisory rather than enforceable.

The syntax is straightforward: User-agent directives specify which crawler the rules apply to, and Disallow directives list paths that should not be crawled. An Allow directive can override a Disallow for specific paths. The file can also include a Sitemap directive pointing to the site's XML sitemap.

For URL shortening services, robots.txt plays a dual role. The service's own website uses robots.txt to guide crawlers to important pages while blocking administrative areas. The redirect endpoints, however, should generally be accessible to crawlers so that search engines can follow short URLs and discover the destination content.

Important considerations include not using robots.txt to hide sensitive content (it does not prevent indexing if pages are linked from elsewhere), testing the file with Google's robots.txt tester, and being aware that different crawlers may interpret edge cases differently.

Was this article helpful?

Related Terms

Sitemap

An XML file that lists all important pages on a website, helping search engines discover and crawl content efficiently.

Web Crawler

An automated program that systematically browses the web to discover and index pages for search engines.

Noindex

A directive that tells search engines not to include a specific page in their search results index.

Crawl Budget

The upper limit on how many pages a search engine crawler will crawl on a site within a given period. An important concept for SEO on large-scale sites.

Redirect Budget

The maximum number of redirects a search engine crawler will follow in a single crawl session. Exceeding this limit negatively impacts indexing.

Scroll Depth

A metric indicating how far down a page a user scrolled. Used to measure content read-through rates and engagement.

Related Articles

URL Shorteners and SEO - How Short Links Affect Search Rankings and Link Equity

Analyze the impact of short URLs on search engine optimization. Covers 301 redirect link equity, crawl budget effects, and SEO best practices.

What Is a URL Shortener? A Complete Guide to How It Works

Learn what URL shorteners are, how they work, and why they matter. A beginner-friendly guide covering benefits, use cases, and best practices.

GDPR and Short URLs - Privacy-First Link Tracking Compliance Guide

Learn how short URL services handle personal data under GDPR. Covers consent requirements, data retention policies, and privacy-first tracking alternatives.

FAQ

Can pages blocked by robots.txt still be indexed?
Crawling is blocked, but if other pages link to it, the URL alone may remain in the index. To fully exclude a page from the index, use a noindex meta tag.
What problems can robots.txt misconfigurations cause?
Blocking important pages from crawling can cause them to disappear from search results. Blocking CSS or JavaScript files can also affect search engine rendering.

Put the terms to work

Shorten a URL for Free