October 19, 2026 ·

How to Whitelist AI Crawlers in WordPress (When robots.txt Isn’t Enough)

how to whitelist ai crawlers in wordpress, an illustration for CiteTrack AI

⚡ Key takeaways

  • → On WordPress, robots.txt is only one of three layers that decide whether an AI crawler gets your page. A security plugin and a CDN sit in front of it, and either can block a bot before the file is ever read.
  • → If your robots.txt allows the bots and your logs show 403 responses against them, the block is in a firewall or CDN, not the file. Fixing robots.txt again will change nothing.
  • → Cloudflare's free Bot Fight Mode cannot be bypassed with custom rules. If it is challenging AI crawlers you want, the fix is turning it off, not writing an exception.
  • → SEO plugins usually generate a virtual robots.txt. A physical file in your site root overrides it, which is why the plugin's robots.txt editor sometimes appears greyed out.
  • → Allowing a crawler gets you read, not cited. Once bots arrive with 200 responses, the work moves to whether your pages are worth quoting.

Most robots.txt guides are about keeping AI crawlers out. This one is for the opposite problem: you want ChatGPT, Claude, Perplexity and Google to read your WordPress site, you have told them so, and they still are not getting through.

On WordPress that is almost never a robots.txt problem. It is a layer above it. For what to write in the file itself, see the robots.txt rules for AI crawlers. This guide covers everything that can overrule it.

The three layers between an AI crawler and your page

A request from an AI crawler passes through up to three gates before it reaches WordPress, and each one can refuse it independently.

LayerWhere it livesWhat a block looks like
CDN or proxyCloudflare, Sucuri, your host's edge networkA challenge page or 403 served before your server sees the request
Security pluginWordfence, Solid Security, All In One WP SecurityA 403 or rate-limit response from WordPress itself
robots.txtYour site root, or generated by an SEO pluginThe bot reads a Disallow rule and declines to request the page

The order matters. A CDN block means the bot never reaches your security plugin. A security plugin block means the bot never gets to obey your robots.txt. So if you have only checked the file, you have checked the last gate first.

Find out which layer is blocking before you change anything

Your server access log tells you which layer to look at. Search it for the user agents you care about, such as OAI-SearchBot, ChatGPT-User, Claude-SearchBot, PerplexityBot and Googlebot, and read the response code next to each request.

  • 200 means the bot got the page. Nothing is blocking it.
  • 403 means something refused it. On WordPress that is almost always a security plugin or a CDN rule.
  • 429 means you are rate limiting it, usually a security plugin treating crawl speed as an attack.
  • No entries at all means the request never reached your server. That points at the CDN, or at a robots.txt rule the bot obeyed.

If you would rather not dig through raw logs, CiteTrack's free AI Crawler Log Analyzer reads an exported log file and shows which AI bots came, which pages they asked for and what they got back.

Cloudflare: the most common silent block

Cloudflare sits in front of a large share of WordPress sites, and two of its settings stop AI crawlers without anything showing up in WordPress.

The AI crawler block setting. Cloudflare offers a one-click setting that blocks known AI crawlers, and it began applying AI crawler blocking by default to new domains in 2025. If your site was added recently and you never looked at it, check it. It lives in the Security area of your Cloudflare dashboard under the bot settings.

Bot Fight Mode. This free setting challenges traffic Cloudflare judges to be automated. The catch is that free Bot Fight Mode cannot be bypassed with WAF custom rules or skip rules. You cannot write an exception for OAI-SearchBot and leave it on. If it is challenging crawlers you want, the realistic options are switching it off or moving to a paid plan where Super Bot Fight Mode lets you allow verified bots.

To confirm Cloudflare is the culprit, open Security Events in your Cloudflare dashboard and filter by the bot's user agent. A blocked or challenged request there, paired with no entry in your server log, settles it.

Security plugins: rate limits and bad-bot lists

WordPress security plugins block AI crawlers in two ways, and neither announces itself.

Rate limiting. Crawlers request pages faster than people do. A plugin set to throttle or block fast crawlers will return 429 or 403 to a legitimate AI bot during a normal crawl. In Wordfence this is controlled by the rate limiting rules in its firewall options, which treat crawlers and human visitors separately.

Bad-bot and user agent lists. Some plugins ship lists of user agents to block, and some site owners added AI bots to those lists during the first wave of "block AI" advice. If an allow rule in robots.txt seems to do nothing, check the plugin's blocked user agents first.

Every major security plugin keeps a log of what it blocked. Wordfence calls it Live Traffic. Search that log for the crawler's user agent. A blocked entry there is your answer, and the fix is in the plugin's settings, not your robots.txt.

Do not allowlist by user agent alone. A user agent string is self-reported, and scrapers routinely claim to be GPTBot or Googlebot. Allowing anything that says it is an AI crawler opens the door to every bot pretending to be one. Where a plugin offers it, allow by verified IP range or reverse DNS instead.

SEO plugins and the robots.txt you are actually serving

WordPress does not ship a physical robots.txt file. It generates one on the fly, and SEO plugins such as Yoast and Rank Math take over that generation and give you an editor for it.

That creates two traps.

A physical file overrides the virtual one. If a robots.txt file exists in your site root, uploaded by a host, a migration tool or a previous developer, the web server serves that file and your plugin's settings are ignored. Rank Math disables its robots.txt editor in exactly this situation, which is why it sometimes appears greyed out. Delete or edit the physical file, or the plugin cannot help you.

What you edited is not always what is served. Always load yourdomain.com/robots.txt in a browser after a change. That is the only version a crawler sees. Caching plugins and CDNs can also serve a stale copy for a while after you edit it.

One more setting to rule out: Settings, then Reading, then "Discourage search engines from indexing this site." On current WordPress versions this adds a sitewide noindex tag rather than a robots.txt rule, but the effect on visibility is just as complete. It is often left ticked after a site launches from staging.

The whitelisting checklist

  1. Load your live robots.txt and confirm the answer and search bots you want are not disallowed, including by a User-agent: * block.
  2. Check for a physical robots.txt file in your site root that may be overriding your SEO plugin.
  3. Check Settings, then Reading and make sure search engine discouragement is off.
  4. Read your access log for 403, 429 or missing entries against the crawlers you want.
  5. Check Cloudflare for the AI crawler block setting and Bot Fight Mode, and look in Security Events for challenged bot requests.
  6. Check your security plugin's log for blocked crawler requests, then adjust rate limiting or remove AI bots from blocked user agent lists.
  7. Retest the page with the free AI Crawlability Checker, which tests access per AI agent in one pass.

For a wider version of this audit that also covers JavaScript rendering and meta tags, see is your website crawlable by AI.

A 200 response is a start, not a citation

Once the logs show AI crawlers getting 200 responses, access is solved. Whether the page gets quoted is a separate question about structure and authority: a clear answer under a heading that matches the question, and a source an engine has reason to trust.

CiteTrack's AI crawler analytics connects the two inside WordPress. It shows which verified AI bots read which pages, flags spoofed user agents, and lines that up against which pages actually get cited, so you can see where access is working and quoting is not.

Frequently asked questions

I allowed GPTBot in robots.txt. Why is it still not crawling?

Most often because a firewall or CDN is blocking it before robots.txt is read. Check your access log for 403 responses against the bot, then check Cloudflare's bot settings and your security plugin's blocked traffic log. Also note that GPTBot is OpenAI's training crawler. ChatGPT search and live page reads come from OAI-SearchBot and ChatGPT-User, so allow those too.

Can I make an exception for AI crawlers in Cloudflare Bot Fight Mode?

Not on the free version. Free Bot Fight Mode cannot be bypassed with custom or skip rules. Turn it off, or use a paid plan where Super Bot Fight Mode lets verified bots through.

Why is the robots.txt editor in Rank Math greyed out?

Because a physical robots.txt file exists in your site root. The server serves that file instead of the plugin's generated version, so the plugin disables its editor. Remove or edit the physical file to take back control.

Should I whitelist AI crawlers by user agent?

Not by user agent alone. Anyone can send a user agent claiming to be an AI crawler. Allow by verified IP range or reverse DNS where your tools support it, and treat user agent matching as a convenience rather than proof.

Does allowing AI crawlers slow my site down?

For most sites the load is modest. If a crawler is genuinely heavy, slow it with rate limiting tuned for crawlers rather than blocking it outright, so you stay readable without the traffic spikes.

Where to go from here

For what to put in the file for every AI vendor, see the robots.txt rules for AI crawlers. For OpenAI's three crawlers specifically, see ChatGPT robots.txt rules.

Guides · , ,

Want to see if AI cites pages like this?

CiteTrack AI tracks your AI crawlers, citations, and the revenue they drive, inside WordPress.

Get CiteTrack AI

Explore: Features · Crawl Academy · Glossary · Compare · Pricing