=== Cokama llms.txt ===
Contributors: littlegreenman
Tags: llms.txt, robots.txt, ai, crawler, seo
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.20
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Serves an /llms.txt file for AI tools and lets you choose which AI crawlers robots.txt allows.

== Description ==

Cokama llms.txt & AI Crawler Control serves `/llms.txt` through WordPress (no file written to disk) and lets you Allow or Block known AI crawlers in `robots.txt`.

**Nothing locked, no Pro version.** The full tool is in this plugin.

`robots.txt` is a request, not a lock. Well-behaved crawlers follow it; others may not. This plugin does not remove content already collected.

Installing it with the default “Allow all” crawler preset adds no extra `robots.txt` lines unless “Discourage search engines” is on, in which case the plugin also asks the listed AI crawlers not to fetch.

`/llms.txt` is served only when nothing else already provides one (a physical file, Plain permalinks, or another plugin such as Yoast). You can tick “Use Cokama's instead” if you want this plugin to take over. A physical file in the site root still wins.

ChatGPT-User, Claude-User and Perplexity-User fetch pages because a person asked, and those companies say robots.txt may not apply, so Block on those rows is weaker. Blocking Google-Extended does not keep a site out of Google’s AI Overviews, which use ordinary Googlebot. llms.txt is a community proposal and few AI companies say they read it.

More free plugins and help from iWorks Ireland: https://iworks.ie/wp-tools/

== Installation ==

1. Upload the plugin zip, or copy the folder to `wp-content/plugins/`.
2. Activate **Cokama llms.txt & AI Crawler Control**.
3. Open **Cokama Tools → llms.txt**, review the preview, save, then choose crawler rules if you want them.

== Frequently Asked Questions ==

= Does this lock AI tools out of my site? =

No. `robots.txt` is a request. Well-behaved crawlers follow it; others may not. It does not remove content already collected. ChatGPT-User, Claude-User and Perplexity-User may still fetch a page when a person asks.

= Does installing it change robots.txt? =

Not with the default “Allow all” preset, unless “Discourage search engines” is on. Extra `Disallow` lines are added when you block crawlers, and also when search engines are discouraged.

= Does it contact any external service? =

No. It only reads and serves your own site.

= What if Yoast or a physical llms.txt file is already there? =

The plugin warns you and does not serve a second copy unless you tick “Use Cokama's instead”. A physical file in the site root still wins, because WordPress cannot change a file on disk.

== Screenshots ==

1. The llms.txt tab with a live preview of the generated file.
2. The public /llms.txt output served through WordPress.
3. AI crawler Allow and Block radios, including the Google-Extended note.
4. robots.txt preview showing the full file this plugin would add to.
5. Conflict warning when another plugin or a physical file already serves llms.txt.

== Changelog ==

= 1.2.20 =
* Renamed to Cokama llms.txt. Improved file path handling and output escaping.

= 1.2.19 =
* Version aligned with the rest of the Cokama suite. No functional changes.

= 1.0.1 =
* Deactivating the plugin now 404s /llms.txt instead of serving the home page.
* Removed the unused /llms-full.txt copy. A real full-text file is deferred.
* When the plugin cannot serve /llms.txt, visitors get a 404 instead of the home page.
* Site names and summaries keep real ampersands and quotes instead of HTML entities.
* Only public post types can be listed. Sections can be reordered and keep their data after a remove-and-add.
* robots.txt preview shows the full file. Claims about user-agent crawlers, Google-Extended and llms.txt are on the crawler screen.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.2.20 =
Renamed to Cokama llms.txt. Improved file path handling and output escaping.

= 1.2.19 =
Version aligned with the rest of the Cokama suite. No functional changes.

= 1.0.1 =
Fixes deactivation, 404s, HTML entities and the unused /llms-full.txt copy.

= 1.0.0 =
First release.
