Robots.txt tells crawlers which paths they may request. It does not remove a page from search results. To keep a page out of Google, use a noindex tag and allow crawling, so Google can read the instruction. Blocking a page in robots.txt alone can leave its URL visible in results without a description.
Home / Free SEO Tools / Robots.txt Generator
FREE · NO SIGNUP
Robots.txt generator for WordPress and Shopify
Choose your platform, add your sitemap and private paths, and watch the file build live. Download it and upload it to your domain root.
Settings
Your file will appear here after you generate it.
Upload the file to the root of your domain so it opens at yourdomain.com/robots.txt.
ABOUT THIS TOOL
About the Robots.txt Generator
The Robots.txt Generator builds a clean robots.txt file for WordPress or Shopify. It adds the common private paths for each platform, lets you add your own, includes your sitemap, and can block AI training crawlers if you choose. It works for both a WordPress robots.txt and a Shopify robots.txt setup.
Why use this tool
Start from a safe preset
WordPress and Shopify each have common private paths. The preset gives you a tested starting point.
Control AI crawler access
Choose whether GPTBot, ClaudeBot, PerplexityBot and similar crawlers can access your content.
Copy or download in seconds
Get the file as text or as a robots.txt download, ready to upload to your domain root.
How to use it
-
01
Pick your platform
Select WordPress, Shopify or a custom setup. The preset fills in the common rules for you.
-
02
Add your sitemap and extra paths
Enter your sitemap URL and any private paths, one per line.
-
03
Download and upload
Upload the file to the root of your domain and check it at yourdomain.com/robots.txt.
What robots.txt does and does not do
WordPress robots.txt: what to block and what to allow
Block /wp-admin/ to keep the admin area out of crawls, but allow /wp-admin/admin-ajax.php because themes and plugins use it. Do not block your CSS or JavaScript folders, since Google needs them to render the page. Add your sitemap line so search engines can find all your important URLs.
Shopify robots.txt and why it is different
Shopify generates a default robots.txt, which you can customise through the robots.txt template in your theme code. Common private paths include checkout, cart, account and internal search pages. Keep product and collection pages open to crawlers, since they are the pages you want to rank.
Frequently asked questions
Where do I upload robots.txt on WordPress?
Upload the file to the root of your domain, so it opens at yourdomain.com/robots.txt. On WordPress you can also manage it with an SEO plugin such as Rank Math.
Should I block /wp-admin/ in robots.txt?
Yes, blocking /wp-admin/ is common practice, but keep /wp-admin/admin-ajax.php allowed because some themes and plugins rely on it.
Does robots.txt remove pages from Google?
No. Robots.txt controls crawling, not indexing. To remove a page from search results, use a noindex meta tag and allow crawling so Google can see it.
More free tools
Not sure your crawl settings are right?
Our free website audit checks crawling, indexing and sitemap issues on your live site.