New: 500+ free SEO and AI search tools, no sign-up.Explore tools →

How to Use the WordPress Robots.txt Generator (Step by Step Guide)

By Hasnain Sanmal
WordPress Robots.txt Generator: how to fill in the tool

This guide explains how to use Robots TXT for WordPress, step by step, with screenshots of the real tool. It is written for site owners, developers and SEOs who look after crawling, indexing and site health. Get a safe, ready-made robots.txt for WordPress and WooCommerce sites with your sitemap, built for Rank Math or Yoast SEO.

Quick answer: To use the WordPress Robots.txt Generator, open the free tool, paste the input, choose the SEO plugin, tick the WooCommerce store and tick the block internal search pages, then copy the text it creates. Everything runs in your browser, so there is no sign up and nothing you type is stored on a server.

how to use Robots TXT for WordPress: WordPress Robots.txt Generator with example inputs
Screenshot of the live WordPress Robots.txt Generator with its example values.

What is the WordPress Robots.txt Generator?

txt generator. Create a safe robots.txt for WordPress and WooCommerce with sitemap, wp-admin, search and cart rules. It is also known as a robots txt for wordpress tool.

Do not block /wp-content/ or /wp-includes/: Google needs CSS and JS to render pages. Block admin, search results and cart pages instead.

How to use Robots TXT for WordPress step by step

  1. Step 1: Open the WordPress Robots.txt Generator

    Go to the WordPress Robots.txt Generator on hasnainsanmal.com, our free robots txt for wordpress tool. It loads with example values already filled in, so you can see how it works straight away. It works the same way on a phone, tablet or computer.

  2. Step 2: Paste Input

    Paste or type your text into Input. The example starts with: https://example.com.

  3. Step 3: Choose SEO plugin

    Choose an option from SEO plugin. Options include Rank Math, Yoast SEO and Other. The example uses Rank Math.

  4. Step 4: Tick WooCommerce store

    Tick WooCommerce store if you want this option, or leave it empty to turn it off.

  5. Step 5: Tick Block internal search pages

    Tick Block internal search pages if you want this option, or leave it empty to turn it off.

  6. Step 6: Tick Block AI training bots

    Tick Block AI training bots if you want this option, or leave it empty to turn it off.

  7. Step 7: Read the results

    The output appears inside the tool card. Change any input to compare different scenarios.

    WordPress Robots.txt Generator results example
    Screenshot of the WordPress Robots.txt Generator results.
  8. Step 8: Copy or download the output

    Use Copy to take the result into your document, CMS, spreadsheet or report.

What does each field in the WordPress Robots.txt Generator mean?

Field What to enter Example
Input Text, one item per line where asked https://example.com
SEO plugin Choose one option (Rank Math, Yoast SEO, Other) Rank Math
WooCommerce store Tick to turn on on
Block internal search pages Tick to turn on on
Block AI training bots Tick to turn on on

What does a worked example look like?

With the example inputs (SEO plugin: Rank Math, WooCommerce store: on, Block internal search pages: on and Block AI training bots: on), the WordPress Robots.txt Generator returns: User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /?s= Disallow: /search/ Sitemap: https://example.com/sitemap_index.xml

Replace the example with your own input to get your own result, then review it before you use it.

How do you get the best results from the WordPress Robots.txt Generator?

  • Re-check after every theme, plugin or server change.
  • Confirm fixes in Google Search Console with URL Inspection.

Bookmark this robots txt for wordpress guide so you can repeat the steps quickly. For background, read the Google crawling and indexing documentation. If you are working on a related task, our guide on how to use the Shopify SEO URL Cleaner walks through it the same way. You can also browse all free Technical SEO Tools.

What mistakes should you avoid with the WordPress Robots.txt Generator?

  • Testing on a staging copy and forgetting that the live site has different rules.
  • Fixing one URL and not checking the template that created the problem.
  • Changing URLs without adding 301 redirects.

Key terms

Robots.txt
A plain text file at the root of a website that tells crawlers such as Googlebot which paths they may or may not crawl. It controls crawling, not indexing, so a blocked URL can still appear in search if other pages link to it.
Indexing
The process in which Google stores a crawled page in its index so it can appear in search results. A page must be crawlable, return a 200 status code and not carry a noindex tag before it can be indexed.
XML sitemap
A file that lists the URLs you want search engines to find, often with last modified dates. Submitting it in Google Search Console helps new and deep pages get discovered faster, although it does not guarantee indexing.
Google Business Profile
The free Google listing that shows a local business in Maps and the local pack, with its address, hours, photos and reviews. A complete, accurate profile and genuine reviews are key local ranking factors.
Core Web Vitals
Google metrics for real user experience: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability. Good thresholds are 2.5 seconds, 200 milliseconds and 0.1.

Related free tools

Frequently asked questions

Is the WordPress Robots.txt Generator free to use?

Yes. The WordPress Robots.txt Generator is a completely free robots txt for wordpress tool, with no sign up, no daily limit and no watermark. It is one of more than 500 free SEO and marketing tools on hasnainsanmal.com.

Is my data stored when I use the WordPress Robots.txt Generator?

No. The WordPress Robots.txt Generator runs in your browser with JavaScript, so the values and text you enter are processed on your own device and are not sent to or saved on our server.

How accurate is the WordPress Robots.txt Generator?

It creates a solid first draft from your inputs. Always review and edit the output so it is accurate, specific and sounds like you before you publish or send it.

Does the WordPress Robots.txt Generator work on a phone?

Yes. The tool is built for screens from 360 pixels wide, so you can use the WordPress Robots.txt Generator on a phone, tablet or computer in any modern browser.

Can I use the WordPress Robots.txt Generator for client work?

Yes. You can use the results for your own sites and for client projects. Check the output first, and keep a note of the inputs you used so you can repeat the check later.

What should I do after using the WordPress Robots.txt Generator?

Apply the result on your page, campaign or document, then measure the effect. If you would like expert help, see the SEO services or message Hasnain on WhatsApp for a free recommendation.

How we checked this guide: every step and screenshot was taken from the live WordPress Robots.txt Generator on 2 November 2026. Further reading: Google SEO Starter Guide.

Hasnain Sanmal
Hasnain Sanmal

SEO and guest post outreach specialist with 2000+ completed orders and a list of 1000+ hand-picked, high-authority websites. More about me

Need high-authority backlinks?

Get niche-relevant guest posts from my own outreach list of 1000+ websites.

Chat on WhatsApp

More to read

All articles