Free tool

robots.txt Generator for WordPress, Shopify and Salla

This free robots.txt generator builds a ready file for WordPress, Shopify, Salla or any site, with rules for AI crawlers and your sitemap line.

Free tool

robots.txt generator with WordPress, Shopify and Salla presets

Build a clean robots.txt file, choose which AI crawlers can read your site, and add your sitemap line.

AI crawlers

How to use it

How to create a robots.txt file

01
Pick your platform

The preset adds the rules that platform usually needs, such as keeping wp-admin closed on WordPress or cart and checkout pages on stores.

02
Add domain and sitemap

The sitemap line helps crawlers find your sitemap. Use the full URL of the sitemap your site actually serves.

03
Decide on AI crawlers

Block training bots if you do not want your content used for model training. Keep search bots allowed if you want to appear in AI answers.

04
Publish and test

Upload the file to the root of your domain, then check it in the robots.txt report in Google Search Console.

For SEO

What robots.txt controls and what it does not

A robots.txt generator writes rules that tell crawlers which paths they may request. It controls crawling, not indexing. A page blocked in robots.txt can still appear in Google if other pages link to it, usually without a description. To remove a page from the index, allow crawling and use a noindex tag instead.

The rules in plain words

LineMeaning
User-agent: *The rules below apply to every crawler that has no group of its own.
Disallow: /cartDo not request URLs that start with /cart.
Allow: /wp-admin/admin-ajax.phpAn exception inside a blocked folder.
*Matches any sequence of characters, for example /*?sort= for sorted listings.
Sitemap:The full address of your XML sitemap.

AI crawlers

Some AI bots collect pages for training, some fetch pages to answer a live search, and some visit only when a user asks about a page. Blocking the search ones can keep you out of AI answers, which matters for AI search optimization (GEO). Google-Extended controls use in Gemini training and does not affect Google Search rankings.

Mistakes in this file are behind many crawl problems we fix. Our guide to robots.txt and sitemap errors covers the common cases, and the SEO problem solutions hub lists related issues. Platform notes are on our WordPress SEO and Shopify SEO pages.

Avoid these

Common robots.txt mistakes

Staging rules on the live site

A leftover "Disallow: /" from development blocks the whole site. It is a frequent cause of a site not showing on Google.

Blocking CSS and JavaScript

Google needs these files to render the page. Do not block theme or asset folders.

Using robots.txt to hide pages

The file is public. Anyone can read the paths you list, so do not use it to hide private areas.

Blocking pages that have noindex

If Google cannot crawl the page, it never sees the noindex tag.

Wrong sitemap address

A sitemap line pointing to an old or http address wastes crawl requests.

Case and slash errors

Paths are case sensitive. /Blog and /blog are different paths.

Next step

Have your crawl setup checked

A correct robots.txt is one part of crawl health. We review it together with the sitemap, redirects, canonical tags and index coverage in our technical SEO service. You can also generate language tags with the hreflang tag generator or browse all free SEO tools.

Not sure what your current robots.txt is blocking? We will check it with the rest of your technical setup.

Get a free SEO audit

FAQ

Frequently asked questions

Where do I upload the robots.txt file?

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

Does blocking a page in robots.txt remove it from Google?

No. It stops crawling, not indexing. To remove a page, allow crawling and add a noindex tag, or delete the page and return a 404 or 410.

Should I block AI crawlers?

It depends on your goal. Blocking training bots keeps your content out of model training. Blocking AI search bots can remove you from AI answers, which may cost visibility.

Can I edit robots.txt on Shopify or Salla?

Shopify lets you customize it through the robots.txt.liquid theme template. On other hosted platforms, check the platform settings and documentation for what you can change.

Does Google respect crawl-delay?

No. Googlebot ignores the crawl-delay line. Some other crawlers read it, so this generator does not add it by default.

Want to know what is holding your site back?

Send us your website and get a free SEO audit with the first fixes to make.