WORDPRESS & WOOCOMMERCE AEO

WordPress AI Visibility: Stop WAF False Blocks

A large share of the WordPress sites we audit unknowingly block AI search engines — through Cloudflare Bot Fight Mode, aggressive security plugins, or a physical robots.txt nobody remembers creating. Learn how to configure safe whitelists and unlock WooCommerce citations.

WordPress AI Retrieval: Hurdles & Fixes (6 Steps)

01

Cloudflare Super Bot Fight Mode False Positives

When using Cloudflare with WordPress, enabling "Bot Fight Mode" issues a JavaScript interactive challenge to non-standard user agents. While Googlebot and Bingbot are on Cloudflare's verified bot list, emerging AI search bots (OAI-SearchBot, PerplexityBot, Claude-SearchBot / Claude-User) may trigger a 403 or Managed Challenge, causing instantaneous search retrieval failure. Harden the rule with UA + published IP matching per the Cloudflare WAF guide.

// Cloudflare WAF Custom Rule Expression (Pro+ plans)

(http.user_agent contains "GPTBot") or
(http.user_agent contains "OAI-SearchBot") or
(http.user_agent contains "ChatGPT-User") or
(http.user_agent contains "PerplexityBot") or
(http.user_agent contains "ClaudeBot") or
(http.user_agent contains "Claude-SearchBot") or
(http.user_agent contains "Claude-User")
Action: Skip → All Super Bot Fight Mode rules + WAF Managed Rules + Browser Integrity Check + Security Level (Pro+ plans)
# Free-plan Bot Fight Mode CANNOT be skipped — turn it off, or allow published bot IP ranges via IP Access rules.
02

SEO Plugins Missing llms.txt Standards

Yoast SEO and Rank Math now generate llms.txt natively, for free (Box 04). The physical-file route below is the fallback when you run neither plugin: You can easily serve this file directly by dropping llms.txt into your web root directory (/var/www/html/) or setting up an Nginx rule.

03

Page Builder DOM Clutter & TTFB Latency

Sites built with heavy page builders (Elementor, Divi) often output deep DOM nesting with high HTML-to-content ratios. AI context windows truncate excessively noisy markup. Ensuring clean schema graphs and concise text summaries allows AI summarizers to extract your key value proposition before hitting token limits.

04

llms.txt: Your SEO Plugin Already Generates It

The "WordPress can't route /llms.txt" era is over. Yoast SEO ships a free llms.txt feature: enable it in the plugin's site-feature settings and it generates the file, refreshes it as content changes, offers a manual curation mode, and produces the spec's .md page versions (feature docs). Rank Math has a free LLMS Txt module: Dashboard → enable the module → General Settings → Edit llms.txt; pick post types and taxonomies, set the posts/terms limit (default 100), add custom links under Additional Content — noindex posts are excluded automatically (KB guide). Run only one generator at a time. On neither plugin? Upload a physical llms.txt to your web root via FTP or your host's file manager — WordPress serves real root files as-is. Start from a template with the free generator, and verify the live URL returns plain text, not your theme's 404 page.

05

robots.txt: Virtual vs Physical — and Which One Wins

WordPress core generates a virtual robots.txt (the do_robots() function, filterable via robots_txt) — but only when no physical file exists. If a real robots.txt sits in your web root, it wins, and plugin editors silently stop having any effect. That stale file is one of the most common hidden blockers we find. Edit in the right place: Yoast → SEO → Tools → File editor; Rank Math → General Settings → Edit robots.txt (Advanced Mode); or edit the physical file directly. Apply the unified policy — allow the search bots, block the bulk training scrapers:

User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: Applebot-Extended
Allow: /

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

Also check Settings → Reading: "Discourage search engines from indexing this site" adds noindex signals (since WP 5.3 via robots meta rather than a blanket Disallow) — fatal for AI visibility if left on by accident. Full bot-by-bot rationale: the AI robots.txt guide.

06

The Security Stack: Cloudflare, Wordfence, Your Host

robots.txt is advisory; enforcement happens in your security layers, and WordPress sites usually run three. Cloudflare: Bot Fight Mode (Free) cannot be skipped by WAF rules — turn it off, allow the bots' published IP ranges via IP Access rules, or upgrade to Super Bot Fight Mode and use a Skip rule; also check the AI Crawler and Agent access policies (Security → Settings) and whether Bot Preference Sync is prepending managed directives to your robots.txt. The full decision tree is in the Cloudflare WAF guide. Wordfence-style plugins: audit rate limiting, UA blocking and "bad bot" lists — a throttled crawler that gets 403s on burst fetches is effectively blocked; exempt the documented search-bot UAs and IP ranges. Hosting: managed WordPress hosts increasingly ship their own bot mitigation — ask support whether AI crawlers are challenged at that layer. Then verify end-to-end with the 12-bot audit: every layer must pass, not just the first.

WooCommerce: Server-Render the Buy Signals

A store page that hides price, stock, or reviews behind JavaScript is a blank wall with a buy button. Keep the transactional facts in the initial HTML: Product + Offer JSON-LD with real price, priceCurrency and availability (Yoast WooCommerce SEO and Rank Math's schema module both generate Product schema — validate with the Rich Results Test), variation data reachable without a JS selection event, and an aggregate rating rendered server-side rather than loaded by a review widget. This is the same failure pattern our 40-store Shopify audit documented: the front door is open, but the rooms AI engines inspect are empty. Quick probe: curl -s https://yourstore.com/product/your-product | grep -i "InStock" — no match means the crawler can't confirm availability either. Finish with a GEO score run on one product page and fix the failed checks template-wide. If you sell variations, test one of each type: a crawler that can read the parent product but not the variant data still can't answer "is the blue one in stock?" — and that unanswered question is exactly where a competitor's citation replaces yours.

Check Your WordPress Site's AI Readability

Discover whether your WAF is blocking ChatGPT Search, check your Schema validity, and get 7 ranked fixes tailored to WordPress.

Order WordPress AEO Audit ($49) →