All articles
AI SEO

WordPress robots.txt for AI Crawlers: GPTBot, PerplexityBot, and Google

HandL WP Engineering·
WordPress robots.txt for AI Crawlers: GPTBot, PerplexityBot, and Google

robots.txt can manage crawler access, but it is not a security control and it is not the same as noindex. AI search adds more user agents, so WordPress owners need a clear policy.

Use this when deciding whether WordPress content should be available to AI search systems, training crawlers, or user-initiated fetchers.

Quick answer

Start with evidence, not a plugin setting. The first useful checks are: Separate search visibility from model-training preferences. Do not use robots.txt to hide private, paid, or sensitive pages. Allow normal search crawlers to fetch CSS, JavaScript, and public pages. Keep every change small enough to reverse.

Fast diagnosis map

Use this map before changing production. It helps separate a real platform issue from a cached page, stale setting, or missing handoff.

SignalWhat it meansUseful next check
GPTBot blockedCheck access, users, or ownership firstDefine AI access policy
OAI-SearchBot unclearLook for a configuration, plugin, or data mismatchUpdate robots.txt
PerplexityBot blocked by WAFInspect the layer most likely to be hidden from the normal UICheck WAF bot rules
Private pages exposedProve whether the problem is still activeTest public pages

What to check first

  • Separate search visibility from model-training preferences.
  • Do not use robots.txt to hide private, paid, or sensitive pages.
  • Allow normal search crawlers to fetch CSS, JavaScript, and public pages.
  • Decide whether AI search bots should access service pages, docs, and blog posts.
  • Verify WAF rules do not block allowed bots by accident.

Run a focused check

These commands or fields give you a useful starting point. Adapt paths, IDs, and privacy handling to the site before running anything on production.

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Googlebot
Allow: /

Sitemap: https://example.com/sitemap.xml
WordPress robots.txt AI crawler control chart comparing GPTBot, OAI SearchBot, PerplexityBot, and Googlebot

Safe fix order

Do the work in this order so each result can be verified. If a step fails, stop and capture the evidence before making a broader change.

  1. Define AI access policy
  2. Update robots.txt
  3. Check WAF bot rules
  4. Test public pages
  5. Use noindex for index control

Verification checklist

The fix is not done when the warning disappears. Confirm the result from the visitor side, admin side, and reporting side.

  • Public pages return 200 to normal search crawlers.
  • Private content is password protected or noindexed where appropriate.
  • Allowed AI bots are not blocked by firewall rules.
  • The sitemap points to canonical public URLs.

Mistakes to avoid

  • Do not judge the result by the homepage only.
  • Do not clear every cache layer until you know which layer affects the symptom.
  • Do not delete evidence before copying filenames, timestamps, versions, and affected URLs.
  • Do not make privacy or crawler decisions without writing down the business reason.
  • Do not leave temporary debug settings, test accounts, or broad permissions in place.

When HandL WP should help

Bring in help when the issue affects leads, checkout, ads, malware risk, search visibility, or a client production site. HandL WP can trace the problem through WordPress, hosting, tracking, cache, and Search Console, then verify the business workflow after the technical fix.

If this is active on a production site, review WordPress crawl access.

Helpful references

Ready when you are

Get WordPress help, before the next lead is lost.

Tell us what’s broken or what you need built. We’ll review your request and reply with clear next steps, usually within a few business hours.

Same-day emergency triage · Backed by HandL Digital