robots.txt generator for WordPress
Create a robots.txt for a WordPress site: it keeps crawlers out of /wp-admin/ while allowing admin-ajax.php, skips internal search pages, and adds your sitemap. Optionally block AI training crawlers, then test the file against any URL before uploading it.
How to use the Robots.txt Tester & Generator
- 1Enter your site to fetch its robots.txt, or switch to Paste and paste a file you're working on.
- 2Choose a crawler, or type any user-agent token, and enter the path or full URL to test.
- 3Read the verdict and the deciding rule; the table shows the same path for every common crawler.
- 4Edit the text to test a change before you upload it, or build a fresh file with the generator.
Frequently asked questions
Does WordPress already have a robots.txt?
WordPress serves a virtual robots.txt if there's no real file, usually just blocking /wp-admin/. SEO plugins such as Yoast or Rank Math let you edit it; uploading a robots.txt file to the site root replaces the virtual one.
Should I block /wp-content/ or /wp-includes/ in robots.txt?
No. Google needs your CSS, JavaScript and images, which live there, to render the page properly. Blocking them can hurt how your pages are understood.
Where do I put robots.txt on a WordPress site?
In the site's root folder (the same folder as wp-config.php), so it opens at yoursite.com/robots.txt. Or paste the rules into your SEO plugin's robots.txt editor.
Related free tools
All tools- Robots.txt Tester & GeneratorTest URLs against robots.txt rules for any bot, or build a new file.
- Robots.txt generatorRobots.txt generator
- Block AI crawlers in robots.txtBlock AI crawlers with robots.txt
- robots.txt for Shopifyrobots.txt for Shopify: rules and tester
- AI Crawler Access CheckerIs your site open to GPTBot, ClaudeBot, PerplexityBot and others?
- XML Sitemap GeneratorCrawl up to 500 pages and download a ready-to-submit sitemap.xml.
- Meta Robots Tag Generatornoindex, nofollow and snippet rules as tags or headers.
- Website SEO ScoreA free mini audit of one page with the Site Audit's checks and fixes.
Then schedule it with Join Postly
Plan, publish and track your posts on every network from one calendar. Free plan, no credit card.