AI Shield keeps AI companies from crawling your stories, while Google, Bing and other search engines keep indexing your site as before. It’s built into PaywallProject 4.0.0 and later. This article shows you how to turn it on. It takes about 10 minutes.
What AI Shield does
AI Shield blocks AI crawlers in two ways:
- robots.txt rules. AI Shield adds a rule for each AI crawler to the top of your robots.txt. robots.txt is a request, not a lock. Well-behaved crawlers honor it, and the major AI companies say theirs do.
- A Cloudflare rule. AI Shield builds a ready-to-copy Cloudflare WAF rule. You paste it into Cloudflare once. Cloudflare then blocks the same crawlers at its edge, whether or not they honor robots.txt. The rule runs before any page cache, so it works even when your pages come from a full-page cache.
AI Shield never blocks these search crawlers: Googlebot, Bingbot, Applebot, DuckDuckBot, YandexBot and Baiduspider. Your search rankings don’t change.
Before you start
- You need administrator access to your WordPress dashboard.
- Your site needs PaywallProject 4.0.0 or later.
- Step 4 applies only if your site uses Cloudflare. You need access to your Cloudflare account. If you’re not sure whether you use Cloudflare, contact PaywallProject support.
Step 1: Turn on AI Shield
- Log in to your WordPress dashboard.
- Go to PaywallProject → Settings and open the AI Shield tab.
- Tick AI Shield (“Tell the AI crawlers ticked below to stay away, in robots.txt”). It’s off until you turn it on.
Step 2: Choose which crawlers to block
The tab lists every AI crawler AI Shield knows, in two groups. All of them are ticked, which means blocked. Untick any crawler you want to let in, then click Save changes.
| Group | What these crawlers do | Crawlers |
|---|---|---|
| AI training crawlers | Collect pages to train AI models. | GPTBot, ClaudeBot, anthropic-ai, Google-Extended, Applebot-Extended, meta-externalagent, CCBot, Bytespider, Amazonbot, cohere-ai, cohere-training-data-crawler, Diffbot, Omgilibot, Timpibot, ImagesiftBot, PanguBot, AI2Bot, FacebookBot |
| AI search and assistant fetchers | Fetch a story when someone asks an AI assistant or AI search engine. | OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, meta-externalfetcher, MistralAI-User, DuckAssistBot, YouBot |
A few things to know:
Google-Extendedkeeps your stories out of Google’s Gemini models.Applebot-Extendeddoes the same for Apple Intelligence. Google Search and Apple search are not affected.- If you block the AI search and assistant fetchers, those tools can’t use your stories in their answers. They won’t link readers to your stories either.
- When a PaywallProject update adds a new AI crawler, AI Shield blocks it on your site automatically. You don’t need to re-save the settings.
Step 3: Check your robots.txt
The robots.txt box on the AI Shield tab shows the rules AI Shield adds. Click View robots.txt to see the live file. The AI Shield rules should be at the top.
AI Shield keeps everything else in your robots.txt as it is: WordPress’s own rules, your sitemap line, and anything your SEO plugin adds. It works with Yoast SEO and All in One SEO (AIOSEO). You don’t need to edit robots.txt in either plugin.
If something stops the rules from working, the AI Shield tab shows a warning. There are two common causes:
- A robots.txt file on disk. Web servers send a physical robots.txt file instead of the one WordPress builds, so the AI Shield rules aren’t served. Yoast’s Create robots.txt file button makes one of these files. To fix it, copy the rules from the AI Shield tab to the top of that file, or delete the file so WordPress serves its own. If you can’t edit or delete the file, contact PaywallProject support. If the file already contains the AI Shield rules, the tab shows a note instead of a warning. Remember to copy the rules again after you change the ticked crawlers.
- An Allow rule from another plugin. If an SEO plugin’s robots.txt editor allows an AI crawler (for example,
GPTBotset to Allow in AIOSEO), the crawler follows that Allow rule instead of AI Shield’s block. The warning names the crawlers. Remove those rules in the other plugin (in AIOSEO, go to All in One SEO → Tools → Robots.txt Editor), or untick the crawlers in AI Shield.
Did you follow the earlier version of this guide? Then you may have pasted AI rules into Yoast’s file editor or AIOSEO’s Robots.txt Editor. Those rules still block the bots they name, but AI Shield can’t change them. If you later untick a crawler in AI Shield, the old rule still blocks it. To manage everything in one place, remove the old AI rules and let AI Shield add them.
If yoursite.com/robots.txt still shows the old version, clear your site cache (and your Cloudflare cache, if you use it) and reload.
Step 4: Add the Cloudflare rule
Some AI crawlers ignore robots.txt. The Cloudflare rule blocks them before they reach your site. Skip this step if your site doesn’t use Cloudflare.
- On the AI Shield tab, find Cloudflare rule and click Copy rule.
- In the Cloudflare dashboard, open your site and go to Security → WAF → Custom rules (Security → Security rules in the newer dashboard).
- Click Create rule and give it a name, such as “Block AI crawlers”.
- Click Edit expression and paste the rule.
- Under Then take action, choose Block, then click Deploy.
The rule looks like this, with one line for each crawler you ticked:
(lower(http.user_agent) contains "gptbot") or (lower(http.user_agent) contains "claudebot") or ...
- The rule matches crawler names in any capitalization, so
GPTBotandgptbotare both blocked. - Cloudflare allows 4,096 characters in one rule. If your list is longer, AI Shield splits it into several rules (“Rule 1 of 2” and so on). Create one Cloudflare rule for each.
Google-ExtendedandApplebot-Extendedare not in the rule. No crawler sends those names, so a rule naming them could only block Googlebot and Applebot. robots.txt handles them.- If your host runs Cloudflare for you, send them the rule instead.
- If you added the “Block AI bots by name” rule from the earlier version of this guide, replace its expression with the AI Shield rule. Don’t keep both.
Cloudflare doesn’t update the rule for you. After you change the ticked crawlers, save the AI Shield tab and paste the new rule into Cloudflare. After a PaywallProject update, check whether the rule on the AI Shield tab has changed.
Check Cloudflare’s AI bot settings
Warning: Do not set Training to Block or Block on pages with ads. Cloudflare counts Googlebot, Bingbot and Applebot as training crawlers too, so either option can remove your site from search. Block on pages with ads is the default for many sites, so check this setting even if you’ve never changed it.
In Cloudflare, go to Security → Settings, find the AI bot settings and set them as follows:
| Setting | Choose | What it does |
|---|---|---|
| Search | Allow | Keeps Google, Bing and other search engines crawling your site. |
| Training | Disallow AI Training | Blocks AI training crawlers and tells Google, Bing and Apple not to train on your content, while still letting them index you for search. |
| Agent | Block | Stops AI assistants from fetching your stories on demand. |
Optional: turn on AI Labyrinth on the same page. It sends AI crawlers that ignore your rules into a maze of decoy pages. Cloudflare also adds its own AI rules to the top of your robots.txt. This is expected and works alongside AI Shield.
Step 5: Check that search engines can still reach your site
- Open Google Search Console and select your site.
- Paste the address of a recent story into the URL Inspection bar at the top.
- Click Test live URL. The result should say the page is available to Google.
- Check Search Console again over the next week for new crawl errors.
If Google reports that it’s blocked, check Cloudflare’s Training setting first. It should be Disallow AI Training, not Block.
What AI Shield doesn’t do
- It doesn’t stop bots that hide who they are. robots.txt and the Cloudflare rule only catch crawlers that send their real name. A scraper that pretends to be a regular browser gets through.
- It doesn’t block anything inside WordPress. Without the Cloudflare rule, AI Shield is a robots.txt request only.
- It doesn’t stop Google AI Overviews. AI Overviews use Google’s regular search crawler. To opt out, use the Search Console setting in How to protect your articles from AI scraping.
- It doesn’t change your paywall. AI Shield doesn’t change who can read your restricted stories.
- It doesn’t remove content AI companies already collected. It only affects crawling from the moment you turn it on.
Add a free registration wall (recommended)
AI Shield stops bots that identify themselves. A free registration wall adds another layer: readers see the opening of each story, then create a free account with their email address to keep reading. Bots don’t create accounts, and every new account grows your newsletter list. There’s a link to set it up at the bottom of the AI Shield tab.
To learn more, read How the free registration funnel works. You can also contact PaywallProject support or book a call and we’ll set it up with you.
Troubleshooting
I don’t see the AI Shield tab
AI Shield is in PaywallProject 4.0.0 and later. Update the plugin, or contact PaywallProject support.
The AI Shield tab shows a warning about robots.txt
Read the warning. It names the crawlers that get through and why. See Step 3 for both fixes. A warning can also appear at the top of other PaywallProject pages, with a See how to fix it link.
robots.txt still shows the old version
Clear your WordPress cache, then purge your Cloudflare cache (Caching → Configuration → Purge Everything), and reload the page.
How often should I update this?
Keep PaywallProject up to date. Updates add new AI crawlers to AI Shield, and your robots.txt picks them up automatically. The Cloudflare rule doesn’t, so check the AI Shield tab after each update and paste the rule into Cloudflare again if it has changed.