DELTAWEB

robots.txt Tester — Free robots.txt Analysis & Testing Tool

Analyze your website's robots.txt file and test URL access for Googlebot and all bots. User-agent rules, Allow/Disallow analysis, sitemap detection — free and no sign-up required.

Start robots.txt Analysis

Enter your domain, and optionally add the URL you want to test. See instantly which bots can access which locations.

User-Agent Rules
URL Access Test
Sitemap Detection
What Is robots.txt?

File That Directs Search Engine Bots

robots.txt is a plain text file located in the root directory of your website (/robots.txt) that tells search engine crawlers (bots) which pages can or cannot be crawled.

Robots Exclusion ProtocolThe standard, also known as robots exclusion protocol, has been in use since 1994. Compatible bots such as Googlebot, Bingbot, and Yandexbot check /robots.txt before they begin crawling a site and commit to following its rules. The protocol is a “gentlemen's agreement” rather than a technical requirement.

A properly configured robots.txt protects server resources, preserves crawl budget for critical pages, and prevents sensitive content from appearing in search results. Misconfiguration, on the other hand, can lead to serious SEO disasters such as the entire site being deindexed.

5 sn
Before crawling any site, Googlebot checks
Crawl
Direct its budget toward important pages
Public
Public file — do not write secret URLs
Directive Guide

robots.txt Directives and Syntax

The function of each directive, correct syntax, and important notes.

User-agent
User-agent: Googlebot

Specifies which bot(s) the rules apply to. The wildcard (*) applies to all bots. Multiple User-agent lines can be listed consecutively to assign the same rules to multiple bots.

Disallow
Disallow: /admin/

Prevents the specified path (and its subpaths) from being crawled by bots. An empty Disallow value means all pages are allowed to be crawled. The longer matching rule always takes priority.

Allow
Allow: /admin/public/

Used to allow access to subpaths of a parent directory blocked by a Disallow rule. In a Disallow/Allow conflict of equal length, Allow wins.

Crawl-delay
Crawl-delay: 10

Specifies the minimum wait time between bot requests in seconds. Google does not officially support this directive; Bing and Yandex do. It helps reduce server load on high-traffic websites.

Sitemap
Sitemap: https://example.com/sitemap.xml

Specifies the full URL of your XML sitemap file. Multiple Sitemap lines can be used. Google, Bing, and Yandex support this directive; it helps bots discover content more efficiently.

Common Mistakes

Common Mistakes in robots.txt

A misconfigured robots.txt can cause your entire site to disappear from search engines. Learn to recognize and prevent these mistakes.

Blocking the Entire Site

Disallow: /

This is a common mistake for test environments. When applied to a live site, it can cause all pages to be removed from search engine indexes.

Blocking CSS and JS Files

Disallow: /*.js$

Google cannot properly render pages without crawling JavaScript and CSS files. This can lead to ranking losses.

Misunderstanding Noindex

Disallow: /gizli/

Disallow prevents a page from being crawled, but it does not guarantee that the page will not be indexed. The page may still be indexed due to backlinks from other sites. For this, <meta name='robots' content='noindex'> is required.

Relying on It for Sensitive Data

Disallow: /kullanici-verileri/

robots.txt is a public file. Do not place URL structures you want to keep secret here — malicious actors can use this information.

Best Practices

4 Golden Rules for robots.txt

Core principles for an SEO-safe and effective robots.txt file.

Wildcard (*) First, Then Specific Bot

Define general rules with User-agent: *, then add specific overrides for Googlebot or Bingbot. Specific rules take precedence over wildcard rules.

Declare Your Sitemap

Always add a Sitemap line to your robots.txt file. This works independently of submitting a sitemap to Google Search Console and helps bots discover content faster.

Mind the Trailing Slash

Disallow: /admin and Disallow: /admin/ behave differently. The former also blocks similar paths like /administrator; the trailing slash targets the /admin/ directory exactly.

Test After Changes

After every robots.txt change, verify that your important URLs are not being blocked by mistake using the robots.txt Test tool in Google Search Console or this tool.

FAQ

Frequently Asked Questions

We answer common questions about the robots.txt file and search engine bots.

  • What is robots.txt and what is it used for?

    robots.txt is a plain text file located in the root directory of your web server (/robots.txt) that tells search engine bots (Googlebot, Bingbot, etc.) which pages can be crawled. It is based on the Robots Exclusion Protocol standard and has been used since 1994. It is used to manage crawl budget, exclude duplicate content from crawling, and hide sensitive sections like admin panels from bots.

  • What happens on a site without robots.txt?

    When the robots.txt file is not found (HTTP 404), search engine bots assume they are authorized to crawl all pages. For small sites with orderly content, this is usually not a problem. However, on large sites, unnecessary page crawling can consume crawl budget. If you have admin panels, test environments, or duplicated content pages, creating a robots.txt file is recommended.

  • Does robots.txt directly affect SEO?

    Yes, significantly. Search engines use the concept of a 'crawl budget,' which limits how many pages they can crawl per day on large sites. Excluding unnecessary pages (filter URLs, duplicate content, admin interfaces) from crawling with robots.txt helps reserve that budget for valuable pages and can indirectly speed up the ranking process. On the other hand, accidentally blocking critical pages can turn into a complete SEO disaster.

  • Can I prevent a page from being indexed with Disallow?

    No — this is a critical misconception. Disallow prevents bots from crawling a page, but it does not guarantee deindexing. Thanks to backlinks from other sites, Google may become aware of the page's existence and index the URL even if it doesn't know the content. If you want a page to never appear in search results, use <meta name='robots' content='noindex'> or add the X-Robots-Tag: noindex header to the HTTP response.

  • If Allow and Disallow conflict, which one wins?

    According to Google's algorithm, the rule with the longer match always takes precedence. For example, with Disallow: /admin/ and Allow: /admin/public/, a request to /admin/public/index.html will be allowed because it matches a longer path. If rules of equal length conflict, Allow takes precedence. This tool uses that algorithm to calculate URL test results.

  • Must Googlebot follow robots.txt rules?

    robots.txt is not a technical restriction; it is a voluntary 'gentlemen's agreement' of compliance. Established search engines like Google, Bing, and Yandex follow the Robots Exclusion Protocol. However, malicious bots can completely ignore these rules. Therefore, robots.txt is not a sufficient security mechanism for protecting sensitive data; real protection requires authentication or IP restrictions.

  • How do the wildcard (*) and $ work in robots.txt?

    * (asterisk) matches any sequence of characters. For example, Disallow: /*.pdf$ blocks all URLs ending in .pdf. $ marks the end of the URL; Disallow: /admin$ blocks only the /admin URL, not subpaths like /admin/panel. You can combine these two characters when creating complex patterns.

  • Does the Crawl-delay directive affect Googlebot?

    No, Google does not officially support the Crawl-delay directive and ignores it. To control Googlebot's crawl rate, you should use the 'Crawl rate' setting in Google Search Console. Bing and Yandex support Crawl-delay. If you want to reduce server load, you can manually limit the crawl rate for Googlebot in Search Console.

  • Can I define separate rules for multiple User-agents?

    Yes. Each User-agent block works independently. First define your general rules with User-agent: *, then apply different rules to specific bots with special blocks such as User-agent: Googlebot. If a rule is defined for a specific bot, Google applies the special rule for that bot; if it cannot find one, it applies the wildcard (*) rule — it does not combine them.

  • Is this tool free, and is registration required?

    Yes, it is completely free and requires no registration. The tool fetches the target site's /robots.txt address from the server in real time, parses the rules using Google's longest-match algorithm from the robots.txt specification, and calculates URL test results. Your queries are not stored on our servers.

Found an issue? Let us fix it for you

We audit your site's technical SEO end to end, report the issues in priority order and fix them. The first review is free.

See our SEO service