NEW Live Ahrefs Domain Rating (DR) & Developer API v1 are now available. Explore API Docs arrow_forward
Crawl Budget & Bot Directives

Robots.txt Generator

Create validated, standards-compliant robots.txt files to protect administrative paths, optimize crawler bandwidth, and declare your XML sitemaps.

smart_toy User-Agent Targeting tune CMS 1-Click Presets shield AI Bot Restrictions download 1-Click File Export

Define Robot Directives

Select bot agents and specify URL pattern rules.

precision_manufacturing
bolt Quick Framework Presets:

Tip: Use wildcards /*?* to block dynamic query parameters while keeping root paths crawlable.

link
gavel

Robots.txt Directives Cheatsheet

Official protocol standards supported by Google & Bing.

User-agent: *

Applies the ensuing set of rules to every standard compliant web crawler.

Allow: /path/

Explicitly grants crawl permission to a specific file or subfolder.

Disallow: /admin/

Restricts bots from fetching URLs starting with this path prefix.

Sitemap: https://...

Points spiders directly to your comprehensive XML sitemap index.

warning SEO Warning: Accidental De-Indexing

Never add Disallow: / unless your site is in maintenance or private staging. Doing so orders all search engines to completely cease crawling your entire domain.

Deep Technical Architecture

How Googlebot Evaluates Robots.txt Rules in 2026

Understanding rule precedence, pattern matching, and HTTP status codes prevents costly indexing errors that sabotage your organic ranking performance.

low_priority

Rule Specificity & Precedence

Googlebot uses the most specific matching directive based on character length. If an Allow rule and a Disallow rule match the same URL, the directive with the longer pattern string takes absolute precedence.

pattern

Wildcards & End-of-String Anchors

Use the asterisk * to match any string of characters, and the dollar sign $ to signify the exact end of a URL (e.g. Disallow: /*.pdf$).

lock_reset

Handling AI Scraping Bots

Separating Search Engine bots (Googlebot, Bingbot) from Large Language Model scrapers (GPTBot, ClaudeBot, CCBot) allows you to maintain full search discoverability while controlling automated training ingests.

4 Critical Robots.txt Mistakes to Avoid

Mistake Bad Implementation Correct Best Practice SEO Consequence
Blocking CSS & JavaScript Disallow: /assets/ Allow: /assets/*.css
Allow: /assets/*.js
Google cannot render mobile layouts; tanks Core Web Vitals rankings.
Using Robots.txt for Noindex Noindex: /private/ Use <meta name="robots" content="noindex"> Google retired 'Noindex' in robots.txt in 2019; directive is silently ignored.
Blocking Programmatic Landing Pages Disallow: /check-*/ Allow: / Triggers 'Blocked by robots.txt' indexing failures in Search Console.
Missing Leading Forward Slash Disallow: admin/ Disallow: /admin/ Invalid syntax; crawlers may not match the intended subdirectory.
Deployment Checklist

How to Upload and Test Robots.txt in 3 Steps

Ensure zero downtime and verify error-free live syntax before submitting to Google.

1

Upload to Root Directory

Place the robots.txt file in your server's top-level public HTML root (e.g., https://yourdomain.com/robots.txt).

2

Verify HTTP 200 Status

Open the file in a browser tab. Confirm that it returns an HTTP 200 OK status code with Content-Type: text/plain.

3

Test in Search Console

Open Google Search Console's Robots.txt Report under Settings. Request a recrawl to ensure Googlebot reads the updated directives immediately.

Frequently Asked Questions

Common Questions on Robots.txt

Everything you need to know about search engine bot management, syntax rules, and crawl budgets.

The robots.txt file must always be placed at the highest-level root directory of your website host (e.g., https://example.com/robots.txt). Placing it in a subfolder like https://example.com/assets/robots.txt will cause search engines to ignore it completely.
No. Robots.txt prevents search bots from crawling a page, but does not de-index it if external websites link to it. If Googlebot cannot access the page to read a "noindex" meta tag, the URL may remain indexed as a bare listing. To completely remove a page, remove the Disallow rule and place a <meta name="robots" content="noindex"> tag in the HTML head.
Crawl budget represents the number of pages search engines will crawl on your site during a specific timeframe. By disallowing low-value pages like internal search results, duplicate pagination, and faceted filters, you preserve crawl budget for high-priority revenue pages.
Yes. Robots.txt rules apply strictly to the specific subdomain and protocol where the file resides. For example, https://blog.example.com/robots.txt controls only the blog subdomain, while https://example.com/robots.txt controls the main domain.
Add a dedicated block for User-agent: GPTBot with Disallow: / while keeping User-agent: * or User-agent: Googlebot set to Allow: /. This allows Google to index your content for search while preventing OpenAI from using your content for model training.

Recognition & Trust

Our product has gained industry recognition

cookie

Cookie Preferences

We use necessary cookies and analytics to ensure precision tool diagnostics and improve search performance. Privacy Policy