| 开发者 |
onevteam
vslnk |
|---|---|
| 更新时间 | 2026年11月25日 19:49 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
llms.txt file up to date and shows you which AI bots actually read your content. No configuration, no account, and nothing is sent to outside services.
https://example.com/about/ ← HTML page for humans
https://example.com/about.md ← clean Markdown for AI
AI systems and most RAG pipelines parse Markdown far more efficiently than HTML. When these systems encounter an HTML page, they must strip navigation, headers, footers, sidebars, scripts, and tracking pixels before they can read the actual content. This noise introduces errors, increases token cost, and leads to lower-quality outputs.
The Markdown file contains a configurable YAML frontmatter block followed by the page title, headings in correct hierarchy, and the body text. Nothing else.
Three tools in one plugin
.md, or with ?format=markdown./llms.txt index of your site in the llmstxt.org format, rebuilt whenever content changes: home page first, one section per language, each page with its excerpt or SEO description. An optional /llms-full.txt carries the full text of every listed page in one file. Both can be written to disk for hosts that serve .txt files themselves./llms.txt, and their Markdown is noindexed too..md URL in its own language.title, date, modified, url, description, image, tags, categories, lang, type)/llms.txt discovery file at the site root following the llmstxt.org convention, with its own name and summary if you set them, and the privacy policy left out/llms-full.txt (optional) — the full Markdown of every page in /llms.txt, rebuilt in the background after content changes/category/news.md, /tag/foo.md, custom taxonomies?format=markdown query parameter as an alternative to the .md URL on any singular page (and on taxonomy archives when those are enabled)the_content filterLink: rel="alternate"; type="text/markdown" HTTP header on every HTML page<link rel="alternate"> tag in <head> for HTML-based discoveryAllow: /*.md$ directive in robots.txtAccess-Control-Allow-Origin: * on .md and /llms.txt so browser-based AI clients can fetch themsave_post, on ACF field value saves, on any ACF field group change, and on plugin settings saveovls_markdown filter for the final Markdown outputovls_frontmatter filter for adding, removing, or modifying frontmatter fieldsovls_content_queries filter for the HTML extraction XPath cascadeovls_llms_txt_posts and ovls_llms_txt_exclude filters to reorder or drop /llms.txt entriesovls_noindex_crawlers and ovls_md_edge_ttl filters for the .md robots header and its cache lifetime/about.md is captured by a WordPress rewrite rule and routed through the plugin's content generator. The generator runs the post through apply_filters( 'the_content', ... ) — the same pipeline WordPress uses on the front end — so Classic Editor, Gutenberg, and shortcodes all work without separate code paths. The rendered HTML is converted to Markdown via league/html-to-markdown, then cached in a WordPress transient.
The cache is invalidated automatically on save_post, on ACF field/group changes, and whenever plugin settings are saved. A manual Clear cache button is also available on the settings page.
Access methods
There are three equivalent ways to request the Markdown version of a page:
.md extension — https://example.com/about.md?format=markdown query — https://example.com/about/?format=markdownLink: rel="alternate" header — returned by every HTML page.md URL is the recommended canonical form.
ACF integration
When Advanced Custom Fields is active, ACF field rendering is opt-in at two levels:
text, textarea, wysiwyg, url, email, link. Each selected field is rendered under a ## Field Label heading. Empty fields are skipped.
one-v-llm-serve folder to /wp-content/plugins/, or install via Plugins → Add New → Upload Plugin..md URLs return 404 immediately after activation, go to Settings → Permalinks and click Save Changes.llms.txt is a proposed standard (llmstxt.org): a plain-text index at the site root that tells AI tools which pages matter and where to find a clean version of each. The plugin builds it from your published content and links every entry to that page's Markdown copy at the .md URL. AI agents that fetch the Markdown get the content without menus, scripts and ads.
No plugin can guarantee that. AI services decide for themselves what to crawl and cite. What the plugin does is make your content easy and cheap for them to read, and its analytics show you which AI bots actually fetch it and which AI services refer visitors to your Markdown.
Keep one llms.txt generator switched on. With Generate llms.txt off, this plugin doesn't answer /llms.txt at all, so the other plugin's file works, and the .md pages keep working. Some plugins write a real llms.txt file to the site root; the web server then serves that file before WordPress runs. In disk mode the plugin never overwrites an llms.txt it did not write: the settings page reports the conflict instead.
Open any published page with .md added to its address (/about/ → /about.md), and open /llms.txt on your site. The View .md link in the post list and in the editor opens a post's Markdown directly. Visits by AI bots appear under One-V LLM Serve → Analytics.
Yes, it's free, with no account, upsell or external service. Markdown, /llms.txt and analytics are generated and stored on your own server. The one exception is opt-in: Verify bot identity asks DNS whether a visitor claiming to be a known crawler really comes from that crawler's network.
No. The plugin only responds to .md URLs, /llms.txt, and the ?format=markdown query parameter. All existing HTML URLs are unaffected.
.md URLs hurt my SEO?No. .md responses carry X-Robots-Tag: googlebot: noindex, follow, with the same line for Bingbot, Yandex, Baidu, Applebot and other search engines, so they keep the Markdown out of their results and the HTML page stays the only entry. AI crawlers find no rule addressed to them and read the Markdown. The Link: rel="alternate"; type="text/markdown" header on each HTML page advertises the Markdown to AI tools.
No. Password-protected and private posts return 404 on the .md URL. Only published posts are served.
CommonMark-compatible Markdown via league/html-to-markdown. ATX-style headings (#), inline links ([text](url)), and fenced code blocks.
In WordPress transients (database by default, or your object cache). Entries are invalidated when the post is saved, when ACF fields or settings change, or when you click Clear cache — a long safety-net expiry also lets any orphaned entry clear itself on object-cache setups.
.md URL returns 404 after activation.Go to Settings → Permalinks and click Save Changes to flush rewrite rules.
Yes. Two ways:
'' from an ovls_markdown filter callback.Yes. Any builder that hooks into the_content is supported (Elementor, Divi, WPBakery, Beaver Builder). For builders that bypass the_content, the plugin falls back to fetching the rendered frontend HTML and extracting the main content area.
Yes. Markdown is stored in WordPress transients. Object caches (Redis, Memcached) work transparently — and Clear cache correctly invalidates them, not just the database. Full-page caching plugins (WP Rocket, LiteSpeed Cache, W3 Total Cache, Breeze, WP-Optimize and others) are told not to store .md responses or /llms.txt. Host and CDN caches may keep a .md response for up to 10 minutes (see the next question).
.md URLs return 403 ForbiddenA security plugin or server rule is denying every URL that ends in .md, before WordPress sees the request. Common causes are Defender's "Prevent Information Disclosure" tweak and similar hardening rules on Apache (a FilesMatch block listing md in .htaccess), or a custom nginx rule. Remove md from that rule, or add an exception for it. The plugin's .md URLs are virtual: no real Markdown files are exposed on disk. Until then, ?format=markdown on the page's regular URL serves the same Markdown.
WPML and Polylang are fully supported: each translation gets its own .md URL in its own language, /llms.txt lists every translation, and the frontmatter carries the right lang.
TranslatePress and Weglot translate the page HTML as it is sent to the browser. The Markdown is built from the content itself, so it is always in the site's original language, and no translated .md URLs are provided. Weglot's translated addresses (/fr/about.md) are not supported.
Some managed WordPress hosts configure their nginx to serve static file extensions (.txt, .xml, …) directly from disk without passing the request to WordPress. When the file is generated dynamically by a plugin, that produces a 404 because nothing exists on disk.
Fix: enable Settings → One-V LLM Serve → Write llms.txt to disk. The plugin then maintains a real /llms.txt file at the site root, regenerating it on every post save, ACF change, or settings update. The file starts with a "Generated by One-V LLM Serve" marker line; the plugin refuses to overwrite a /llms.txt it did not create. On plugin deletion the managed file is removed via uninstall.php.
Not currently. The disk-mode writer assumes WordPress is installed at the site root (ABSPATH is the public root). Subdirectory installs (/wp/) and multisite are not supported by disk-mode yet — for those, the dynamic rewrite-rule path is still available on hosts where nginx forwards .txt requests to PHP (most hosts other than WPEngine/Kinsta).
Yes, for 10 minutes. A .md response is the same for every visitor and every bot, and is sent with Cache-Control: public, max-age=0, s-maxage=600, so host caches (WP Engine and others) and CDNs may keep it that long. This takes load off PHP: a crawler reading many pages no longer hits the host's rate limit for uncached requests. Edits and unpublished pages reach the cached copy within those 10 minutes. Responses that not everyone would get stay private: for visitors with a login or shop cookie, for a crawler or address let through a maintenance mode, and on sites set to discourage search engines (most staging sites).
Two things to watch:
*.md from it..md and .txt files for up to a year. Open MyKinsta → Sites → your site → Caching → CDN → Exclude files from CDN and add the extensions .md and .txt (an exclusion of the path /llms.txt does not take effect). The plugin's settings page shows these steps and checks the result for you.Every published post, page and custom post type you enabled, except posts marked Exclude from Markdown, posts hidden from search in your SEO plugin, and the privacy policy page (and WooCommerce's terms page). The home page and the blog page come first, then pages with a menu order, then the rest by title. On WPML and Polylang sites each language gets its own sections after the default language. Each entry shows the post's excerpt, or its meta description from Yoast SEO, Rank Math, SEOPress or All in One SEO. Developers can reorder or drop entries with the ovls_llms_txt_posts and ovls_llms_txt_exclude filters.
An optional second file, switched on at One-V LLM Serve → Settings → llms.txt. It holds the full Markdown of every page listed in /llms.txt, for tools that read a whole site in one request. It is rebuilt in the background a minute after content changes, capped at 5 MB, and served at /llms-full.txt. With Write llms.txt to disk on, it is written to the site root as well. On sites where WP-Cron doesn't run, build it with wp ovls llms-full.
For each .md request the plugin stores: the timestamp, the User-Agent string (deduplicated via a small dictionary table — one row per unique UA), the referrer hostname only (path and query string are stripped), the requested post or term and its post type / taxonomy, the post language, and the HTTP response code (200 or 304).
Never stored: IP addresses, cookies, session identifiers, geolocation, full referrer URLs with query strings, or any user-account data. Counts visits exclusively to .md URLs — the regular HTML pages are not tracked.
With Verify bot identity on, a request claiming to be a crawler with published DNS names (Googlebot, Bingbot, Applebot, Amazonbot, YandexBot and others) is checked the way Google and Bing document it: the address must resolve to the operator's domain and back. Only the verdict is stored with the event; the address is not.
Detailed per-hit events are kept for the number of days you choose in Settings (default: 365). Older events can optionally be rolled up into a daily aggregate table for long-term trend charts — the aggregate keeps only daily counts by bot, client kind, language, referrer type, response code and post type, with no per-UA or per-post detail. Daily WP-cron ovls_events_cleanup enforces the retention.
Analytics is enabled by default and can be turned off at One-V LLM Serve → Settings. All stored data can be wiped at One-V LLM Serve → Analytics → Reset analytics. Uninstalling the plugin drops the three analytics tables (ovls_events, ovls_ua_dict, ovls_events_archive) completely.
The plugin classifies crawlers by their User-Agent header. Almost all major AI companies (OpenAI, Anthropic, Perplexity, Google, Apple, Amazon, Meta, ByteDance, Cohere, Mistral, Common Crawl, …) honestly self-identify because they have publicly committed to respecting robots.txt. Those are detected accurately.
However, some traffic is invisible to User-Agent-based detection:
python-requests script) — these show up under "Other bot" rather than the underlying model.By looking at request headers that real browsers emit automatically and bare HTTP clients usually don't. Specifically:
Sec-Fetch-User: ?1 — present only when the navigation was triggered by user activation (link click, address-bar Enter, tap-out from an AI app to the system browser). Programmatic navigation in Playwright/Puppeteer doesn't set it.Sec-CH-UA brand list — a real downstream browser (Chrome, Edge, Brave, Opera, Vivaldi, Yandex, Samsung Internet, Arc, DuckDuckGo) announces its brand here. The open-source Chromium build that Playwright runs by default does not — it identifies as bare "Chromium". Detectable difference.Sec-Fetch-Site — sent by every modern browser since Safari 16.4 (March 2023). Absence indicates the request didn't come from a browser engine at all.Chrome/X.0.0.0 (User-Agent Reduction); a UA claiming Chrome/133.0.6943.141 with non-zero minor digits is impossible for a real browser and flags the request as a copy-pasted scraper UA.The events store no personal data — no IP addresses, no user identifiers, no cookies, no full referrer URLs (the path and query string are stripped before storage, so utm parameters or any PII that might be encoded in a URL never reach the database). User-Agent strings, Fetch Metadata Request Headers (Sec-Fetch-Site, Sec-Fetch-User), and User-Agent Client Hints (Sec-CH-UA) are technical request-level metadata used to classify automated crawlers and tell browser-class clients apart from script-class clients — they carry strictly less information than the User-Agent and don't, on their own or in combination, identify a person. The plugin relies on legitimate-interest (Art. 6(1)(f)) as the lawful basis — server-side bot analytics is widely accepted as a legitimate interest, and the suggested privacy text at Tools → Privacy discloses precisely what is collected so it can be copied into your site policy.
If your jurisdiction requires explicit user disclosure for any server-side analytics, you can turn the feature off at One-V LLM Serve → Settings.
.md responses are the same for every visitor and may be cached by hosts and CDNs for 10 minutes (Cache-Control: public, s-maxage=600). Search engines get a crawler-addressed noindex (googlebot: noindex, follow, bingbot: …). This ends the 429 errors from WP Engine's rate limit on uncached requests./llms-full.txt with the full text of every listed page, rebuilt in the background; wp ovls llms-full builds it at once./llms.txt; the home and blog pages come first; one section per language on WPML and Polylang sites; the privacy policy and WooCommerce terms pages are left out./llms.txt, term listings and front matter fall back to the Yoast SEO, Rank Math, SEOPress or All in One SEO meta description..md and /llms.txt aren't cached.ovls_llms_txt_posts, ovls_llms_txt_exclude, ovls_noindex_crawlers, ovls_md_edge_ttl, ovls_llms_full_max_bytes, ovls_bot_dns_suffixes, ovls_client_ip./llms.txt. Markdown is always rendered as a logged-out visitor sees the page, so members-only content can't reach the shared cache..md URLs and /llms.txt respect maintenance, coming-soon and members-only modes (WooCommerce, Elementor, SeedProd, WP Maintenance, Ultimate Member), including each plugin's own exemptions..md URLs to crawlers that another plugin blocked./llms.txt, and their .md says noindex too..md (a bare slug, another letter case, the default language's directory) redirect (301) to its own .md.Accept: text/markdown requests fall back to the HTML page when a page has no Markdown, labelled with an X-OVLS-Fallback header.Link / <link rel="alternate"> discovery on taxonomy archives when they are enabled./llms.txt leaves out hidden WooCommerce products, hidden WPML languages and page-builder templates. Disk mode is safer and keeps up with changes, and large sites build the list much faster..md URLs no longer lead to the home page afterwards.ovls_markdown and ovls_frontmatter receive a third argument, 'post' or 'term'. New filters: ovls_site_gate and ovls_is_noindex..md conditional requests (304 Not Modified) now include CORS headers, so a browser fetch() in CORS mode no longer fails on cache revalidation.wp ovls reclassify runs the same pass on demand.X-Robots-Tag — known AI crawlers receive index, follow so they ingest the Markdown variant, while search engines receive noindex, follow so the canonical HTML page stays the sole SERP entry. A new "Allow search engines to index .md (advanced)" toggle opts every User-Agent into index, follow.ETag / If-None-Match and Last-Modified / If-Modified-Since) returning 304 without a body, plus X-Content-Type-Options: nosniff, Referrer-Policy: no-referrer, Vary: User-Agent, Accept-Encoding, and Cache-Control: private, max-age=0, must-revalidate.X-OVLS-Version HTTP header on every .md response and in the /llms.txt marker, so operators can confirm the deployed build with a single curl -I.wp ovls … — flush, regenerate, list, warm, and reclassify..md URLs resolve to the correct translation instead of the default-language post..md link is built and 404 on direct request, instead of polluting /llms.txt..md across User-Agents and defeat the conditional headers; Kinsta installs get an in-dashboard notice./llms.txt now carries the "Generated by One-V LLM Serve" marker in both dynamic and disk-mode delivery, and lists posts of every language on multilingual sites./llms.txt size cap, self-healing rewrite flush on upgrade, and safer HTML/YAML handling./llms.txt now detects multisite and "WordPress in a subdirectory" installs and refuses to write to ABSPATH when it does not map to the public docroot. Settings page surfaces a clear "unsupported install layout" state instead of silently writing the file to the wrong location. The dynamic rewrite-rule path keeps working on all install layouts./llms.txt.