=== AI Paywall ===
- Contributors: luxuryes
- Author URI: https://luxuryes.com/
- Tags: ai, paywall, content protection, seo, gptbot
- Requires at least: 5.5
- Tested up to: 6.8
- Requires PHP: 7.4
- Stable tag: 1.0
- License: GPLv2 or later
- License URI: https://www.gnu.org/licenses/gpl-2.0.html
Download the official version from the WordPress.org Plugin Directory.
Development of this plugin is managed on GitHub. Feel free to report issues or contribute to the project.
In the age of AI, content creators face a new challenge: how to maintain an online presence without giving away their entire library to large language models (LLMs) for training, free of charge. The AI Paywall plugin is a simple, lightweight, and powerful solution to this problem.
It creates a "soft paywall" that elegantly separates your content. You have two modes of operation:
- Manual Mode: Use the standard WordPress
<!--more-->block to precisely control where your public snippet ends. - Automatic Mode: Let the plugin automatically protect your entire back catalog of posts by creating a snippet of a target word count (e.g., the first ~160 words).
The rest of your article is hidden from all bots (including Googlebot, GPTBot, CCBot, etc.) and is loaded dynamically only for human visitors.
- Serve a Snippet: The plugin initially serves a public teaser.
- Attract Search Engines: Bots see this snippet and index it, ensuring your site remains discoverable.
- Load for Humans: For human visitors, JavaScript fetches the rest of the article from a dedicated, secure API endpoint.
- Block the Bots: The plugin automatically adds rules to your
robots.txtfile, preventing crawlers from accessing the full content.
- Protect Your Content: Keep your full articles out of AI training datasets.
- Maintain Your SEO: Your site's discoverability is unaffected by using an indexable snippet.
- Automatic Protection for Old Posts: Instantly protect your entire library without editing a single post.
- Full Manual Control: The manual
<!--more-->block always overrides the automatic settings. - Lightweight & Performant: The plugin is lean and has zero impact on your site's archive pages or homepage speed.
- Download and activate the plugin from the WordPress.org directory.
- Navigate to Settings > AI Paywall.
- To protect your old posts, check "Enable for posts without a manual 'More' tag".
- Set your desired "Snippet Target Length" in words (default is 160).
- Save your settings. That's it!
The plugin uses a word-count targeting system. It will include full paragraphs in the snippet until the total word count meets or exceeds your target, ensuring it never breaks your site's layout by cutting off text mid-sentence.
No. Google will see and index the public snippet, allowing you to rank for keywords within it. However, Google cannot rank you for keywords that only appear in the protected content.
No. This method uses a standard technique called "lazy loading" or "conditional content delivery," which is compliant with Google's guidelines and is a common practice for paywalls.
This can happen if your site has a physical robots.txt file in its main directory. A physical file will always override the virtual one that WordPress and this plugin use. To check, visit https://yourdomain.com/robots.txt.
You have two solutions:
- (Recommended) Delete the physical
robots.txtfile from your server's root directory using FTP or a file manager. This will allow the plugin to add its rules automatically and safely. - (Manual Fix) If you must keep your physical
robots.txtfile, you need to add the following rules to it manually:
# AI Paywall Plugin
User-agent: GPTBot
Disallow: /wp-json/ai-paywall/
User-agent: CCBot
Disallow: /wp-json/ai-paywall/
User-agent: *
Disallow: /wp-json/ai-paywall/
The AI Paywall plugin automatically blocks the most important crawlers (GPTBot, CCBot, and a general * rule) from your content API. This provides excellent baseline protection.
However, for users who want the most comprehensive blocklist possible, we maintain an expanded list in a separate document. This list, inspired by major publishers, targets a wider array of AI, data-scraping, and next-gen search bots.
Click here to view the comprehensive blocklist for advanced users.
Note: This is a manual step. The plugin does not add these extra rules automatically.