=== ZetaRank AI Agent Access Control ===
Contributors: zetarank
Tags: seo, ai seo, llms.txt, robots.txt, schema
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Audit and control your site's visibility to AI crawlers and agents — ChatGPT, Claude, Perplexity, Gemini — from your WordPress dashboard.

== Description ==

Most "AI SEO" plugins guess. ZetaRank AI Agent Access Control gives you direct control.

It manages per-bot Allow/Disallow rules injected straight into your site's robots.txt,
serves a dynamic `/llms.txt` summarizing your site for AI agents, and outputs baseline
JSON-LD structured data (WebSite + Article/WebPage) — all from one settings screen,
with no separate server or API key required.

**What it does:**

* Per-bot Allow/Disallow control for 20 known AI crawlers and agents, including GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, Claude-User, Claude-SearchBot, Google-Extended, PerplexityBot, Perplexity-User, Meta-ExternalAgent, Meta-ExternalFetcher, Applebot-Extended, Amazonbot, DuckAssistBot, MistralAI-User, CCBot, Bytespider, cohere-ai, anthropic-ai, and Diffbot
* Sensible defaults out of the box: training crawlers default to blocked, live "answer engine" crawlers default to allowed — edit any of them individually
* A dynamic `/llms.txt` listing your pages and recent posts, with an editable site summary
* JSON-LD structured data on every page, describing your site and content for AI consumption
* Works entirely through WordPress's native `robots_txt` filter and rewrite rules — no physical files written, no separate server

**What this plugin won't do:** promise to "submit your site to ChatGPT." No such public
mechanism exists. This plugin controls crawler *access* and machine-readable context —
which is the lever site owners actually have.

= Want more? =
MetaRankSEO Pro adds scheduled monitoring with alerts, site-wide schema audits (every
post/page, not just the homepage), IndexNow auto-submission on publish, and white-label
client reports for agencies. [Learn more →](https://zetarank.com/pro)

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/zetarank-ai-agent-access-control/`, or install directly through the WordPress admin.
2. Activate the plugin through the 'Plugins' screen.
3. Go to **Settings → ZetaRank AI Agent Access Control** to review bot rules and enable llms.txt.

== Frequently Asked Questions ==

= Does this submit my site to ChatGPT or Claude? =
No — there's no public API for that. This plugin controls whether your site is
*reachable* by AI crawlers and gives them a clean, structured entry point.

= I already have a physical robots.txt file — will this still work? =
The plugin edits WordPress's dynamic robots.txt via the `robots_txt` filter. If a
physical `robots.txt` file exists on your server, your webserver serves that file
directly instead, and this plugin's rules never take effect. The admin page detects
this and gives you a ready-to-paste rules block to add to your physical file manually.

= Does /llms.txt work with "Plain" permalinks? =
No — it relies on WordPress rewrite rules, which Plain permalinks don't use. Switch to
any other permalink structure under Settings → Permalinks.

= Will this conflict with Yoast SEO or Rank Math? =
No, it runs independently. If you already output WebSite/Article schema via another
plugin, you may want to disable the schema output here to avoid duplicate JSON-LD.

= Does it slow down my site? =
No meaningful impact — robots.txt and llms.txt are generated on request via core
WordPress hooks, and the schema output is a single small script tag.

== Screenshots ==

1. AI bot access rules table
2. llms.txt settings and live preview link
3. Physical robots.txt detection notice with copy-paste block

== Changelog ==

= 1.1.0 =
* Added 4 AI bots to the registry: anthropic-ai, Meta-ExternalFetcher, DuckAssistBot, MistralAI-User.
* Added a warning when Plain permalinks are active, since /llms.txt requires pretty permalinks to resolve.
* Added full translation-string wrapping across the admin screen (text domain was declared but unused).
* Added uninstall.php to remove plugin settings on deletion.

= 1.0.0 =
* Initial release: per-bot robots.txt rules, dynamic llms.txt, JSON-LD schema output.

== Upgrade Notice ==

= 1.1.0 =
Recommended update — adds several current AI bots to the access list and fixes an
llms.txt issue on sites using Plain permalinks.
