Rawi MD — Markdown for AI Crawlers
v1.3.0Ahmed Abdelhamed · 2026年8月19日 上架
Give ChatGPT, Claude and other AI crawlers a clean Markdown copy of your posts, pages and products, plus an llms.txt index and a full analytics dashbo …
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,158
- 最近更新
- 2026年11月21日
贡献者
截图





People are asking ChatGPT, Claude and Perplexity the questions they used to type into Google. To answer, those tools visit real websites and read them — including yours.
But they read a WordPress page badly. Your content arrives buried in markup, scripts, navigation and cookie banners that mean nothing to a language model, and the model pays for every one of those tokens.
This plugin answers Accept: text/markdown with a clean Markdown document at the same URL. Browsers keep getting the normal page. Nothing changes for your visitors, and nothing changes in how you write.
The part most plugins get wrong
Page caches answer requests before WordPress runs. When LiteSpeed or WP Rocket has a stored copy of a page, an agent asking for Markdown gets HTML instead, and the plugin never even loads. This plugin handles that on both sides: it tells the cache plugins to stand down at runtime, and it generates the server-level rules you need to paste in so the cache steps aside before PHP starts.
How agents can reach the Markdown
Accept: text/markdownon the normal page URL — real HTTP content negotiation, the route AI agents actually use- A
.mdsuffix on any URL, for agents that do not send the header ?format=mdor?output_format=md
The HTML page also advertises the Markdown version through a <link rel="alternate"> tag and a Link: response header, so an agent can find it without guessing.
What you control
- Which post types are served, and which individual pages are excluded
- Which theme elements are stripped, by CSS selector
- Which YAML frontmatter fields appear
- WooCommerce products carry SKU, price, currency, stock status and rating in the frontmatter. Those live in post meta, so a converter working from rendered HTML cannot produce them
- A
Content-Signalheader stating how you allow the content to be used
llms.txt
/llms.txt is generated automatically: the site name, a short introduction you can write, and a link to the Markdown version of every eligible page, grouped by content type.
The dashboard
- Requests, distinct agents, pages read, tokens delivered and tokens saved compared with the real HTML page, each against the previous period
- A stacked timeline by agent, with 24-hour, 7-day, 30-day, 90-day and 12-month ranges in your own timezone
- Who is reading: live AI assistants, AI search indexes, training crawlers, search engines and scripts, and which company runs each one
- Crawler verification: requests that claim to be Googlebot, Bingbot or Applebot are checked with forward-confirmed reverse DNS, and optionally GPTBot, ChatGPT-User, OAI-SearchBot and Perplexity against their published IP lists. Fake crawlers are flagged.
- Visitors sent by AI: people who click through to your site from ChatGPT, Perplexity, Gemini, Copilot, Claude and other assistants, which pages they land on, and how many crawler reads it took to earn each visit. Works behind page caches.
- AI readiness score for every page, from the Markdown agents actually receive: summary, substance, headings, alt text, structure, internal links, freshness and size, with a “fix these first” list and the most common issues across the site
- A weekday × hour heatmap, the most requested pages with their Markdown-vs-HTML weight, coverage per content type, broken Markdown links, and a live activity feed
- A health panel and a one-click live test that requests your site the way an agent and a browser would, through every cache in front of it
- A filterable request log with CSV export, a summary widget on the WordPress dashboard, and a box in the post editor showing who read that post
For developers
wp rawi warm,wp rawi flush,wp rawi render <id>,wp rawi stats,wp rawi test- Filters:
rawi_is_eligible,rawi_markdown_document,rawi_frontmatter_data,rawi_strip_selectors,rawi_llms_txt,rawi_agent_catalog,rawi_post_types,rawi_setting,rawi_readiness_checks,rawi_referral_hosts,rawi_client_ip(behind a trusted reverse proxy; Cloudflare is detected automatically) - Markdown is generated in the background as soon as a post is published, so the first agent never waits
- Conditional requests: every response carries an
ETagandLast-Modified, and a repeat visit answers304 Not Modified
Documentation and support
Setup guides, examples and release notes are on the Rawi MD documentation page. For bugs and feature requests, use the support forum here on WordPress.org.
Privacy
The plugin records Markdown requests in a table in your own database: timestamp, post ID, URL path, user agent, the response status, and a one-way hash of the IP address. Nothing is sent anywhere. Crawler verification uses the IP address in memory during the request and stores only the verdict.
When “Visitors sent by AI” is on, a small inline script runs on public pages. It reads only the referrer and the utm_source of the current page view. If, and only if, they point at an AI assistant, it sends the assistant’s name and the visited path to your own site’s REST API. No cookie or local identifier is created; a once-per-tab marker in sessionStorage avoids counting a reload twice. Unique visitors are counted with a hash that changes every day, so no visitor can be followed across days. Logged-in editors are never counted. IP addresses are never stored in readable form, hashing can be turned off entirely, and entries are deleted after a retention period you set. Uninstalling removes the table.
External services
By default the plugin makes no request to any outside service.
If you enable Settings > Request log > Crawler verification > Also download the official IP lists, the plugin downloads, once a day, the public IP range lists that crawler operators publish, so it can tell real crawlers from impostors. No information about your site or its visitors is sent; it is a plain download.
- OpenAI: https://openai.com/gptbot.json, https://openai.com/searchbot.json, https://openai.com/chatgpt-user.json — terms, privacy
- Perplexity: https://www.perplexity.ai/perplexitybot.json, https://www.perplexity.ai/perplexity-user.json — terms, privacy
- Google: https://developers.google.com/static/search/apis/ipranges/googlebot.json — terms, privacy
- Microsoft Bing: https://www.bing.com/toolbox/bingbot.json — terms, privacy
Reverse-DNS verification, which is on by default, performs DNS lookups only and contacts no web service.
Languages
The interface ships in English and Arabic. WordPress picks the Arabic strings automatically when the site language is set to Arabic, and the admin screens follow the right-to-left layout.