Cchak.aiAll guides
WordPress · Updated 14 November 2026

WordPress AI Crawler and robots.txt Setup

WordPress can generate a virtual robots.txt file, while SEO plugins, physical files, hosting security and CDNs can each alter crawler access. Diagnose the full delivery path before adding new AI crawler rules.

Do not overwrite blindly:

A robots.txt file may contain rules for search, feeds, admin paths, sitemaps or plugin-generated resources. Download or copy the current response before changing anything, then merge the smallest necessary change.

1. Confirm the site is meant to be public

In WordPress Admin, open Settings → Reading and check “Search engine visibility”. On a production site intended for search, “Discourage search engines from indexing this site” should normally be unchecked. WordPress uses the public-site setting when it generates robots output and core sitemaps.

2. Find which robots.txt is actually being served

  1. Open https://yourdomain.com/robots.txt in a private window.
  2. Check the response status and save the current content.
  3. Look in the web root for a physical robots.txt file.
  4. Review the SEO or security plugin responsible for robots settings.
  5. Purge page, server and CDN caches after a deliberate change.

WordPress exposes a robots_txt filter for generated output. A physical root file may bypass that generated response, depending on the server configuration.

3. Separate search, ChatGPT Search and training controls

Googlebot and Bingbot support traditional search discovery. OpenAI identifies OAI-SearchBot for ChatGPT Search discovery and GPTBot as a separate control related to potential training. Decide crawler policy deliberately; do not assume all “AI bots” perform the same function.

# Illustrative only — merge with your existing rules
User-agent: OAI-SearchBot
Allow: /

# Keep the existing sitemap URL used by your site
Sitemap: https://example.com/wp-sitemap.xml

This example is not a complete robots.txt file. A specific user-agent group can change how wildcard rules apply, so review the final combined rules rather than pasting this fragment into every site.

4. Check beyond robots.txt

A crawler can be allowed in robots.txt and still fail. Test for:

5. Confirm sitemap and page-level indexing signals

Modern WordPress includes core XML sitemaps, commonly at /wp-sitemap.xml; SEO plugins often provide their own sitemap index. Use one coherent sitemap system and submit its actual URL. On priority pages, check canonical tags, robots meta directives and HTTP headers for unexpected noindex.

6. Make the WordPress content worth retrieving

7. Test safely after every change

  1. Open robots.txt and confirm it returns the intended content.
  2. Test the homepage, one article, one service or product page and the sitemap.
  3. Check response codes without relying only on the browser display.
  4. Inspect Google Search Console and Bing Webmaster Tools.
  5. Monitor firewall logs for blocked verified crawlers.
  6. Keep a dated copy so the change can be reversed.

Check the public WordPress response

Chak.ai can inspect selected public crawler rules and HTML signals. It cannot see private WordPress settings, plugin configuration or firewall logs.

Run the free audit