CF LLMS Stats Tracker

描述

CF LLMS Stats Tracker creates an optimized llms.txt file at /llms.txt that provides AI crawlers (like those from GPTBot, ClaudeBot, etc.) with structured information about your recent content, contact details, and usage policies.

Key Features:
– Automatically generates llms.txt with your 20 most recent posts
– Tracks every llms.txt request with IP, user agent, referrer, and bot detection
* Detailed admin dashboard with statistics, bot analysis, and timelines
– Export visitor data as CSV
– Configurable contact information and privacy policy links
– Automatic cache refresh (hourly + on post publish)
– Data retention settings (default 90 days)
– Dashboard widget with key metrics

Perfect for:
– Blog owners wanting AI-friendly content discovery
– Privacy-conscious site owners tracking AI crawlers
– Developers monitoring llms.txt usage patterns

安装

  1. Upload the plugin files to /wp-content/plugins/cf-llms-stats-tracker
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Visit LLMS Stats Settings to configure contact information
  4. Your llms.txt is now live at yoursite.com/llms.txt
  5. Check LLMS Stats dashboard for visitor analytics

常见问题

What is llms.txt?

llms.txt is an emerging standard for websites to provide structured information to AI training crawlers, similar to robots.txt but specifically for Large Language Models. It helps you control what content AI systems can discover and use.

Where can I find my llms.txt file?

Your llms.txt file is available at https://yoursite.com/llms.txt

Does this replace robots.txt?

No. robots.txt controls crawling permissions. llms.txt provides content discovery and licensing information for AI systems that respect both files.

Can I customize what content appears in llms.txt?

Yes! Configure owner contact info, privacy policy links, and post types in LLMS Stats Settings.

How does bot detection work?

The plugin analyzes User-Agent strings against common bot patterns (Google, Bing, Facebook, etc.) and categorizes requests as human or bot visits.

Is my data secure?

Yes. All data is stored securely in your WordPress database with proper sanitization and nonces. Data retention is configurable (default 90 days).

Can I export the statistics?

Yes! Use the Download Stats CSV button in the stats dashboard to export all visitor data.

评价

此插件暂无评价。

贡献者及开发者

「CF LLMS Stats Tracker」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「CF LLMS Stats Tracker」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「CF LLMS Stats Tracker」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.2

  • Fixed reset stats button issue

1.3.1

  • Added translations

1.3

  • Fixed WordPress Coding Standards compliance

1.2.2

  • Fixed WordPress Coding Standards compliance (WP_Filesystem, wpdb::prepare, sanitization)
  • Added %i placeholders for table names in all queries
  • Improved CSV export using WP_Filesystem API
  • Enhanced superglobal sanitization (HTTP_USER_AGENT, HTTP_REFERER)
  • Added cache invalidation for dashboard statistics

1.2.1

  • Added wp_safe_redirect, wp_parse_url, gmdate compliance
  • Full register_setting sanitization callbacks
  • Prefixed global functions
  • Added object caching for statistics queries
  • Improved admin interface with proper escaping

1.2.0

  • Initial release with llms.txt generation and stats tracking
  • Bot detection and analysis dashboard
  • Admin settings and CSV export
  • Automatic cache management