Free tool

Robots.txt generator and tester

Build a robots.txt file for your website: choose what crawlers may visit, add your sitemap, optionally turn away AI crawlers, then test any path to see whether Googlebot is allowed in.

  • WordPress and shop presets
  • AI crawler opt-out
  • Built-in path tester

Also ask these AI crawlers to stay out

Test a path against these rules

Free, with no sign-up. The tool runs entirely in your browser: nothing you enter is uploaded or stored on our servers.

How to use it

How it works

  1. 01

    Pick your rules

    Start from a platform preset or list the paths you want crawlers to skip.

  2. 02

    Test a few paths

    Type a path and a crawler name to see if the rules allow it.

  3. 03

    Upload the file

    Save it as robots.txt in the root folder of your domain.

What robots.txt does

A robots.txt file is a plain text file at the root of your domain, for example example.com/robots.txt. It asks well-behaved crawlers which parts of the site to skip. Search engines read it before they crawl, so it is the cheapest way to keep them away from internal search results, cart pages and admin areas.

It is a request, not a lock. Anyone can open a blocked URL in a browser, and a badly behaved bot can ignore the file. Never use robots.txt to hide anything private; use a login for that.

A page blocked in robots.txt can still show up in search results if other sites link to it, usually with no description, because the crawler was never allowed to read it. To keep a page out of search, leave it crawlable and add a noindex meta tag, or put it behind a password. If you block the page, the crawler never sees the noindex tag.

Common things to block

  • Internal search result pages and filter combinations that create endless near-duplicate URLs.
  • Cart, checkout and account pages in a shop.
  • Admin and login areas, while keeping any file the public site needs, such as admin-ajax.php on WordPress.
  • Staging sites, by blocking everything. Remove that rule on the day you launch.

Do not block the CSS, JavaScript and image files that your pages need. Google renders pages like a browser and judges them from what it sees.

Pattern rules

Two wildcard characters are widely supported. * matches any run of characters and $ marks the end of a URL. When several rules match, the most specific one, meaning the longest, wins, and Allow wins a tie. The tester above applies the same logic so you can check an exception before you publish.

AI crawlers

Some AI companies publish a crawler name you can disallow. Tick the ones you want to turn away and the tool adds a rule for each. Compliance is voluntary and the list of crawler names changes, so check each company's documentation now and then. Blocking a training crawler does not remove content already collected, and it does not affect normal search ranking.

After you upload it

Open yourdomain.com/robots.txt in a browser to confirm it loads, then check the robots.txt report in Google Search Console. A single stray Disallow: / can remove a whole site from search over time, so always test the paths that matter most, such as your homepage and top service pages.

Questions, answered

In the root folder of the domain, so it loads at yourdomain.com/robots.txt. Each subdomain needs its own file. A file placed in a subfolder is ignored.

Not reliably. It stops crawling, not indexing. For a page that must not appear, use a noindex tag on a crawlable page, or require a login.

No. Without one, crawlers assume everything may be visited. It is useful when you want to keep crawlers out of low-value areas or point them to your sitemap.

It follows the same longest-rule logic with the * and $ wildcards, but Google Search Console remains the final check for your live file.

By the Stegnor team · Updated