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.
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
- Open
https://yourdomain.com/robots.txtin a private window. - Check the response status and save the current content.
- Look in the web root for a physical
robots.txtfile. - Review the SEO or security plugin responsible for robots settings.
- 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:
- 403 responses from security plugins or hosting firewalls.
- 429 responses caused by rate limits.
- JavaScript or cookie challenges from a CDN.
- Redirects between HTTP, HTTPS, www and non-www hosts.
- Maintenance mode, password protection or staging headers.
- Blocked images or assets needed to understand the page.
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
- Use one descriptive H1 and logical H2 sections.
- Keep the answer and important facts in rendered page HTML.
- Remove thin tag archives and duplicate attachment pages where appropriate.
- Add accurate Organization, Article, Product or LocalBusiness structured data.
- Show author, organisation, date and update responsibility.
- Link related articles through visible contextual links.
7. Test safely after every change
- Open robots.txt and confirm it returns the intended content.
- Test the homepage, one article, one service or product page and the sitemap.
- Check response codes without relying only on the browser display.
- Inspect Google Search Console and Bing Webmaster Tools.
- Monitor firewall logs for blocked verified crawlers.
- 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