WebNift
Back to Robots.txt Generator
Official Guide

Robots.txt Generator Guide: Create and Review Crawler Rules

Learn how to create a robots.txt file to control crawler access, understand the difference between crawling and indexing, and configure crawler rules.

8 min read

WebNift Editorial Team

WebNift Editorial Team

Practical guides and resources for using WebNift's free online tools.

Last Updated: August 13, 2026
Reviewed by WebNift Editorial Team on August 13, 2026
v1.0

Overview

A

robots.txt
file provides crawler access rules for compliant web crawlers. It tells search engines like Googlebot and Bingbot which parts of your website they are permitted to request and which parts they should ignore. Managing this file properly helps ensure search engines focus their resources on your most important content.

What Is a Robots.txt File?

The

robots.txt
file is a simple text file hosted at the root of your domain. It uses the Robots Exclusion Protocol, an internet standard, to specify rules for automated clients.

When a compliant crawler visits your website, it first looks for the

robots.txt
file. If the file exists, the crawler reads the rules to determine whether it is allowed to access specific directories, files, or URL parameters. It is a set of rules for crawling, not a security mechanism for human visitors.

What This Robots.txt Generator Does

This tool is a manual generator that creates a

robots.txt
file from the crawler rules you provide. It allows you to configure a single user-agent group, specify Allow and Disallow paths, append a Sitemap directive, and optionally include a Crawl-delay.

The generator runs locally in your browser. It strictly generates text based on your inputs.

This tool does not:

  • Crawl your website to suggest rules.
  • Fetch an existing
    robots.txt
    file from your server.
  • Test whether live URLs are blocked.
  • Automatically upload or submit the generated file to search engines.

How To Use the Robots.txt Generator

  1. Choose the default policy: Select whether you want the base policy for the user-agent to be Allow or Disallow.
  2. Select the user-agent: Choose which crawler these rules apply to (e.g.,
    *
    for all crawlers, or a specific crawler like
    Googlebot
    ).
  3. Add Allow or Disallow paths: Enter the specific URL paths you want to control, with exactly one path per line. Each path must begin with a forward slash (
    /
    ).
  4. Optionally add a Sitemap: Provide the absolute URL or relative path to your XML sitemap.
  5. Optionally enable Crawl-delay: If desired, enable and specify a crawl-delay in seconds.
  6. Generate the file: Click generate to view the raw text. You can then copy the text or download it directly as a
    robots.txt
    file.

Understanding User-agent

The

User-agent
directive specifies which crawler the following rules apply to.

This implementation creates exactly one user-agent group at a time. The most common user-agent is

*
, which applies to all compliant crawlers. If you need to specify different rules for different crawlers (for example, one set of rules for
Googlebot
and another set for
Bingbot
), you will need to manually combine multiple generated groups into a single file.

Understanding Allow and Disallow

The

Disallow
directive tells the specified user-agent not to access a path. The
Allow
directive explicitly permits access and is typically used to override a broader
Disallow
rule (for example, disallowing
/images/
but allowing
/images/public/
).

When using this tool, all paths must begin with a forward slash (

/
). The generator will ignore any path entry that does not start with a slash, as standard paths are always relative to the root of your domain.

What Does
Disallow: /
Do?

You must be exceptionally careful with the

Disallow: /
rule.

Using

Disallow: /
blocks compliant crawlers covered by that user-agent group from crawling your entire site. If your user-agent is set to
*
and your policy includes
Disallow: /
, compliant search engines will not crawl any of your pages.

While this prevents crawling, you should not assume it guarantees deindexing of your existing pages from search results.

Does Robots.txt Prevent Indexing?

It is critical to distinguish between crawling and indexing.

  • Crawling is the process where a search engine requests and retrieves a page from your server.
  • Indexing is the process where a search engine adds a URL to its search results database.

A

robots.txt
file primarily controls crawler access. It prevents a search engine from requesting the page contents. However, if that URL is linked from another website, the search engine might still index the URL without crawling it. Therefore,
robots.txt
is not a reliable method for preventing indexing. To reliably prevent indexing, you should use a
noindex
meta tag or HTTP response header, which requires the crawler to access the page to read the tag.

Using a Sitemap Directive

The

Sitemap
directive tells crawlers where to find your XML sitemap, which helps them discover the canonical pages you want crawled.

This tool provides an optional single field for a Sitemap. If you provide a relative path (and have provided a base domain), the tool will automatically format it as an absolute URL. Note that this tool does not verify that the sitemap actually exists on your server.

Understanding Crawl-delay

The

Crawl-delay
directive asks crawlers to wait a specific number of seconds between requests. When enabled in this tool, it defaults to 10 seconds.

Important: This is an optional directive that is not universally supported. For example, Googlebot does not follow the

Crawl-delay
directive in
robots.txt
(Google controls crawl rate via Search Console). You should not assume that including this directive will successfully control all search engines.

What the Tool Does Not Validate

Because this tool is a static text generator, it does not validate the real-world impact of your rules. WebNift does not:

  • Crawl your site to verify the paths you entered actually exist.
  • Identify logic conflicts between your Allow and Disallow rules.
  • Test how specific crawlers (like Googlebot) will interpret your wildcards or end-of-string characters.
  • Check whether your pages are currently indexed.
  • Inspect your on-page meta robots tags or canonical tags.
  • Guarantee search-engine behaviour.

Publishing robots.txt

This tool generates the text file locally in your browser. It does not automatically apply these rules to your live website.

To publish the file:

  1. Download the generated output as
    robots.txt
    .
  2. Upload the file to the top-level root directory of your web server. It must be accessible exactly at
    https://yourdomain.com/robots.txt
    .
  3. Ensure the file permissions allow public read access.

Best Practices

  • Review Disallow rules carefully before publishing. A single misplaced rule can accidentally block access to critical sections of your site.
  • Be especially cautious with
    Disallow: /
    because it blocks compliant crawlers from crawling the site for that user-agent.
  • Use robots.txt for crawler access rules, not as a reliable method of preventing indexing.
  • Do not place secrets or sensitive URLs in robots.txt expecting them to become private. A
    robots.txt
    file is a public document; listing sensitive paths actually exposes their existence.
  • Include a Sitemap directive when appropriate to help crawlers discover your pages efficiently.
  • Use paths beginning with
    /
    because this implementation ignores other path entries.
  • Review the final generated file before uploading it to your server.

Common Mistakes

  • Accidentally using
    Disallow: /
    and inadvertently blocking all compliant crawlers.
  • Assuming robots.txt prevents indexing. A blocked URL can still appear in search results if linked externally.
  • Exposing sensitive paths in a publicly accessible
    robots.txt
    file.
  • Entering paths without a leading
    /
    .
  • Assuming the tool checks live website behaviour or verifies that your paths exist.
  • Assuming Crawl-delay applies to every crawler, including those that ignore it entirely.
  • Forgetting to publish the downloaded file at the appropriate root location on your site.
  • Assuming generation automatically updates the live website.

Frequently Asked Questions

What does a robots.txt file do? It provides instructions that tell compliant search engine crawlers which pages or files they can or cannot request from your site.

Does robots.txt prevent pages from being indexed? No. A

robots.txt
file primarily controls crawler access. A URL might still be indexed if linked from elsewhere, even if crawling is blocked.

What happens if I use

Disallow: /
? It blocks compliant crawlers covered by the specified user-agent group from crawling any part of the site.

What is the difference between Allow and Disallow?

Disallow
tells a crawler not to access a specific path, while
Allow
explicitly permits access (often used to override a broader Disallow rule).

Does Crawl-delay work with every search engine? No.

Crawl-delay
is an optional directive that some crawlers may support. You should not assume it works universally or controls all crawlers.

Does this tool upload robots.txt to my website? No. It only generates the text file locally. You must manually upload and publish it to the root of your web server.

Are the rules I enter sent to a server for generation? No. Robots.txt generation is performed locally in your browser; the rules you enter are not uploaded for generation.