Create a clean, valid robots.txt file in seconds. Start from a WordPress or WooCommerce preset, choose what crawlers can reach, add your sitemap and decide how AI bots can use your content.
Upload the file to the root of your site so it opens at example.com/robots.txt. Robots.txt controls crawling, not indexing: a blocked page can still appear in Google if other sites link to it. Use a noindex tag or a password to keep a page out of search. Google ignores Crawl-delay; Bing and some other crawlers follow it.
A robots.txt file tells search engine crawlers which parts of your site they may crawl. For most WordPress sites, block /wp-admin/, allow /wp-admin/admin-ajax.php and add your sitemap URL. Robots.txt does not stop pages being indexed, and blocking AI training bots like GPTBot does not affect Google rankings.
A robots.txt file is a plain text file at the root of your website (for example example.com/robots.txt) that tells search engine crawlers which parts of the site they may crawl. Google, Bing and most well-behaved bots check it before they crawl your pages.
Each group starts with a User-agent line that names the crawler, followed by Disallow and Allow rules. A Sitemap line points crawlers to your XML sitemap.
For most WordPress sites, a short file is best:
User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Sitemap: https://example.com/sitemap_index.xml
This keeps crawlers out of the admin area but lets them load admin-ajax.php, which some themes and plugins use on the front end. Rank Math and Yoast both create a sitemap at /sitemap_index.xml.
Disallow: / under User-agent: * stops search engines crawling everything. It is often left behind when a staging site goes live./wp-content/ or /wp-includes/.noindex tag instead, and don't block that page in robots.txt, or Google can't see the tag.example.com/blog/robots.txt is ignored, and shop.example.com needs its own file.AI companies use different bots for different jobs. Training crawlers such as GPTBot, ClaudeBot, CCBot and Google-Extended collect content to train AI models. Blocking them does not remove you from Google Search. AI search bots such as OAI-SearchBot, PerplexityBot and Claude-SearchBot fetch pages to answer questions and cite sources.
If you want your business to appear in AI answers, keep AI search bots allowed. Many publishers block training crawlers but allow search bots. This generator lets you choose each group separately. Want to know how visible you are in AI search? Read our guide to ranking in Google AI Overviews.
After you upload the file, open yourdomain.com/robots.txt in a browser to check it is live. In Google Search Console, the robots.txt report shows which robots.txt files Google found and any errors. Use the URL Inspection tool to check whether a specific page is blocked.
Manual, white-hat link building on real US and UK websites, reported live in Google Sheets.
Upload it to the root folder of your website so it opens at yourdomain.com/robots.txt. On WordPress, Rank Math and Yoast also let you edit robots.txt from the dashboard.
No. It only controls crawling. To keep a page out of search results, use a noindex meta tag or password-protect the page, and do not block it in robots.txt.
No. Google ignores the Crawl-delay rule and adjusts its crawl rate automatically. Bing and some other crawlers do follow it.
No. These are AI training crawlers. Blocking them does not affect how your site ranks in Google Search. Blocking Googlebot would.
Not strictly. Without one, crawlers assume they can crawl everything. A simple file is still useful to point crawlers to your sitemap and keep them out of admin or search pages.