Skip to content
SearchLearningToolsSEO & GEO
WordPress Technical SEO Tool

Robots.txt Generator for WordPress: Custom WP Robots Tool

Create a WordPress robots.txt file with editable rules for selected paths, WooCommerce, sitemap URLs, and named search or AI crawlers. Robots.txt is not a privacy or security control.

Custom Robots Txt Generator Tool

Configure robots txt generator for WordPress CMS & WooCommerce

Core WordPress Crawl Directives

WordPress robots.txt Output

Place in the root public_html/ directory

# WordPress Robots.txt Configuration
# Generated via SearchLearningTools.com WordPress Generator

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-includes/
Allow: /wp-includes/js/
Allow: /wp-includes/images/
Allow: /wp-includes/css/
# WooCommerce Crawl Budget Protection
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
# Block Internal WP Search Indexing
Disallow: /?s=
Disallow: /search/
Disallow: /trackback/
Disallow: /*/feed/
Disallow: /*/comments/

# Generative AI Search & Citation Crawlers (Explicit Allow)
User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: ClaudeBot
Allow: /

Sitemap: https://example.com/sitemap_index.xml

Worked Example Output & WordPress Robots Directives

Sample Input Scenario: WordPress WooCommerce site configuring crawler directives for public and utility paths.

Worked Industry Example Output:

User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /wp-includes/ Allow: /wp-includes/js/ Allow: /wp-includes/css/ Disallow: /cart/ Disallow: /checkout/ Disallow: /my-account/ Disallow: /?s= User-agent: GPTBot Allow: / User-agent: PerplexityBot Allow: / Sitemap: https://mystore.example.com/sitemap_index.xml

This worked example demonstrates how admin-ajax.php remains accessible for script rendering while private checkout pages and internal queries are shielded from indexation.

Frequently Asked Questions About WordPress Robots.txt

A WordPress robots.txt file lets site owners publish crawl directives for compliant bots. Rules can help manage crawling, but they are not access controls: do not use them to protect private URLs or confidential data.

Some WordPress themes and plugins rely on admin-ajax.php for functionality. Review how your site works before blocking it; robots.txt rules can affect crawling of URLs but are not a reliable way to secure or hide content.

Upload the robots.txt file directly to your website root directory (public_html) using SFTP or cPanel File Manager. Alternatively, paste the rules into SEO plugins like Yoast SEO or Rank Math via their File Editor tool.

Choose crawler rules based on the provider and your publishing preferences. Search, user-triggered fetch, and model-training bots may have different names and uses; allowing a crawler does not guarantee citation, and robots.txt is a voluntary protocol rather than an access-control system.

Corner 2 of 6 • RFC 9309 Bot Governance 3-6-9 Law of Trust Verified

Canonical Trust & Verification Matrix: Frequently Asked Questions About WordPress Robots.txt

Canonical Topic Definition (AI Search Retrieval vs. Foundation Model Training Crawler Control)

AI Crawler Governance separates real-time search citation bots (OAI-SearchBot, ChatGPT-User, PerplexityBot, Claude-Web) from offline model training scrapers (GPTBot, ClaudeBot, Google-Extended, CCBot) using RFC 9309 robots.txt user-agent groups and WAF bypass rules.

Deterministic Formula:Referral_Retention = Allow(OAI_SearchBot, PerplexityBot, Claude_Web, Googlebot) ∧ Selective_Policy(GPTBot, CCBot)
3-6-9 Law of Trust Verification Matrix for Frequently Asked Questions About WordPress Robots.txt across Google Search (Corner 3), Human Users (Corner 6), and AI Answer Engines (Corner 9).
3-6-9 Trust CornerTrust Issue ResolvedSearchLearningTools Canonical StandardDeterministic Verification Proof
Corner 3 • Google SearchEliminates scaled fluff, hidden DOM FAQs, redirect chains & fabricated review stars40–60w Answer-First blocks, 100% visible SSR parity & self-referencing canonical URLHTTP 200 ∧ Canonical == Self ∧ 0 Fake Ratings
Corner 6 • Human UsersEliminates bait-and-switch paywalls, mandatory signups & opaque black-box scoresZero login walls, client-side privacy & connected workflow: Website AI Crawler Checker → Robots.txt Generator0 Bytes Stored • Open Formula • CSV/Copy Ready
Corner 9 • AI Engines (RAG)Eliminates high-perplexity narrative walls, blocked search bots & unverified statsSemantic HTML Trust Matrix (<th scope="col/row">), RFC 9309 bot allow & /llms-full.txtAllow(OAI, Perplexity, Claude) • CC BY 4.0

Explore Companion Crawling & Technical SEO Tools

Optimize your crawl budget, test AI search bot directives, and accelerate indexation:

Free tools · No account required to start

Use what you learned here to plan a practical next step.