跳到内容

Rawi MD — Markdown for AI Crawlers

v1.3.0

Ahmed 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日
需要 WordPress 6.2+已测试到 7.0.9PHP 7.4+

截图

The dashboard: requests, agents, pages read and tokens saved against the real HTML page, each compared with the previous period, plus a timeline by agent.
The dashboard: requests, agents, pages read and tokens saved against the real HTML page, each compared with the previous period, plus a timeline by agent.
Visitors sent by AI: people who clicked through from ChatGPT, Perplexity, Gemini, Copilot and Claude, and the pages they land on.
Visitors sent by AI: people who clicked through from ChatGPT, Perplexity, Gemini, Copilot and Claude, and the pages they land on.
Who is reading and how: agent types, companies, delivery routes, verified versus fake crawlers, and a weekday-by-hour heatmap.
Who is reading and how: agent types, companies, delivery routes, verified versus fake crawlers, and a weekday-by-hour heatmap.
The most requested pages with their Markdown-vs-HTML weight, and the AI readiness score with what to fix first.
The most requested pages with their Markdown-vs-HTML weight, and the AI readiness score with what to fix first.
What an agent receives: clean Markdown with YAML frontmatter on the same URL, and the per-post box in the editor.
What an agent receives: clean Markdown with YAML frontmatter on the same URL, and the per-post box in the editor.

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/markdown on the normal page URL — real HTTP content negotiation, the route AI agents actually use
  • A .md suffix on any URL, for agents that do not send the header
  • ?format=md or ?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-Signal header 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 ETag and Last-Modified, and a repeat visit answers 304 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums