Self-publishing

How to Stop AI From Scraping Your Author Website: A Practical Guide

How to stop AI from scraping your author website: which crawlers to block, robots.txt rules, Cloudflare and platform settings, and the limits.

27 November 202612 min readBy the editorial team
An open book on a desk at night shielded by a translucent barrier from beams of light, with a starfield in the window behind

In short

To stop AI from scraping your author website, decide first which bots you want to block. Training crawlers such as GPTBot, ClaudeBot, CCBot and Google-Extended can be refused in robots.txt without hurting your Google ranking. AI search bots such as OAI-SearchBot are different, because blocking them also removes your books from AI answers that send readers to you. Add the rules to robots.txt, switch on the AI-bot block in Cloudflare or your site builder if it has one, and check your server logs every few months. Robots.txt is a request, not a lock, so for bots that ignore it you need blocking at the firewall level.

  • Separate training bots, AI search bots and user-triggered fetchers
  • Block training bots in robots.txt; Google Search is not affected
  • Use Cloudflare or your platform's AI toggle for bots that ignore robots.txt
  • Blocking only works from now on; it does not remove past crawls
  • Your books on retailers and pirate sites are outside your robots.txt

Many authors found out in 2023 that their novels had been used to train large language models, sometimes from pirated copies. Since then a second question has followed: what about the author website itself? Sample chapters, short stories, blog essays, the series bible you published as a bonus for readers. All of it sits on a public server, and AI companies run crawlers that visit public servers every day.

You cannot pull back what was collected years ago, but you can control what happens from now on. This guide explains which AI crawlers visit writers' sites, which ones are worth blocking, the exact robots.txt lines to use, and how to set this up on WordPress, Squarespace, Wix, Substack and Cloudflare. If your site is still on the drawing board, start with our guide on how to build an author website and plan the bot policy in from day one.

On a site builder, most of this is a toggle and a text file. On a custom site, a reader app or a membership platform with paid chapters, the rules have to live in the server, the CDN and the login layer, and that is a job for a developer. Small presses and author platforms that run their own sites often bring in a web team such as YuSMP Group for that layer, because a firewall rule written in the wrong order can block Google as easily as GPTBot. For a typical author site, the steps below are enough.

Why do AI companies crawl author websites?

AI developers need large amounts of well-written text, and fiction is exactly that. Author websites are attractive for three reasons: they hold original prose, they are rarely protected, and they change slowly, so one crawl collects years of work.

AI crawlers visit for three different jobs, and the difference matters for what you block:

  • Training. The bot copies pages into a dataset used to build or update a model. Once a model is trained, your text cannot be taken out of it.
  • AI search. The bot indexes pages so that ChatGPT, Claude, Perplexity and similar tools can quote and link them when someone asks a question. This works more like a search engine and can send readers to you.
  • User-triggered fetching. A person pastes your URL into a chatbot or asks it to read your page. The assistant then fetches that one page on their behalf.

Common Crawl adds a fourth path. It is a non-profit that archives a large share of the public web and gives the data away, and many AI models have been trained on its archives. A page captured by Common Crawl can end up in training sets the original crawler never ran.

Which AI crawlers visit author websites?

Most large AI companies publish the names (user agents) of their crawlers. OpenAI lists its bots in its crawler documentation, and Google explains Google-Extended in its list of common crawlers. The table covers the names you are most likely to meet in an author site's logs.

User agentCompanyWhat it doesOur suggestion for authors
GPTBotOpenAICollects pages for model trainingBlock
OAI-SearchBotOpenAIIndexes pages for ChatGPT search resultsAllow if you want readers from ChatGPT
ChatGPT-UserOpenAIFetches a page when a user asksUsually allow
ClaudeBotAnthropicCollects pages for model trainingBlock
Claude-SearchBot, Claude-UserAnthropicSearch index and user requestsYour choice, as with OpenAI
Google-ExtendedGoogleControl token for use in Gemini modelsBlock; Google Search is not affected
Applebot-ExtendedAppleControl token for use in Apple's AI trainingBlock; Siri and Spotlight search keep working
CCBotCommon CrawlOpen web archive used by many AI labsBlock
Meta-ExternalAgentMetaCollects pages for AI trainingBlock
BytespiderByteDanceCrawler linked to AI productsBlock, and block at the firewall
PerplexityBot, Perplexity-UserPerplexityAI search index and user requestsYour choice
AmazonbotAmazonGeneral crawler, also used for AI featuresYour choice

New names appear several times a year, and companies sometimes rename or split their bots. Treat any list, including this one, as something to review every few months rather than a one-time setup.

Should you block every AI bot?

Not necessarily. Blocking everything is the simplest choice, but it has a cost that many authors don't see straight away.

Readers increasingly ask chatbots questions like "what should I read after The Expanse" or "who wrote the Daimones trilogy". The answers are built from pages the AI search bots were allowed to read, and they often include a link. If you block OAI-SearchBot, Claude-SearchBot and PerplexityBot, your site cannot be one of those sources. Your books may still be mentioned, but the description will come from a retailer, a review site or a fan wiki instead of from you.

A reasonable middle path for most fiction writers looks like this:

  1. Block training crawlers (GPTBot, ClaudeBot, CCBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, Bytespider). They take text and send nothing back.
  2. Allow AI search bots on public pages such as the home page, book pages, bio and blog, so assistants can describe and link your work accurately.
  3. Keep full chapters and paid content off public URLs, behind a login or a mailing-list download, where no crawler of any kind can read them.

If you would rather have no AI involvement at all, block the search bots too. The choice is yours to make, but make it on purpose.

How to stop AI from scraping your author website in 7 steps

The full setup takes under an hour on most platforms. Steps 3 and 5 do most of the work.

1. Write down your policy

Before touching any settings, write two lines: which bot types you block (training, search, user fetches) and which parts of the site are off-limits. It sounds bureaucratic, but it keeps robots.txt, the firewall and the platform toggles consistent, and it helps when you revisit the setup next year.

2. Check which bots already visit

Look at what is actually happening. Your hosting control panel usually has raw access logs; search them for "GPTBot", "ClaudeBot", "CCBot" and "Bytespider". On Cloudflare, the AI Crawl Control dashboard shows which AI services crawled the site and how often. Note the numbers; you will compare them later.

3. Add AI rules to robots.txt

Robots.txt is a plain-text file at the root of your domain (yoursite.com/robots.txt). Well-behaved crawlers read it before visiting anything else. Keep the existing lines for Googlebot and Bingbot, and add a block for each AI crawler you want to refuse:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Bytespider
Disallow: /

To keep a folder away from AI search bots as well, for example a sample-chapters section, add a rule such as User-agent: OAI-SearchBot followed by Disallow: /samples/. Never add User-agent: * with Disallow: / unless you also want to vanish from Google and Bing.

4. Understand what Google-Extended and Applebot-Extended do

These two are not separate crawlers. Google and Apple still fetch your pages with Googlebot and Applebot for search. The "Extended" names are control tokens: a disallow rule tells the company not to use the content for its AI models. Blocking Google-Extended does not change your Google Search ranking. It also doesn't remove your pages from AI Overviews in Search, because those are produced by the regular search system. If you want out of AI Overviews entirely, the only tool Google offers is the nosnippet family of directives, which also strips your search snippets. Few authors should go that far.

5. Block at the CDN or firewall level

Robots.txt depends on goodwill. Firewall rules don't. If your site runs through Cloudflare, including its free plan, there is a setting under Security that blocks known AI bots outright, and a managed robots.txt option that writes the AI rules for you. Cloudflare has also tested a pay-per-crawl model where AI companies would pay to access a site, though for most authors the simple block is the useful part.

Without Cloudflare, your host may offer a web application firewall with user-agent rules, or you can add rules to an Apache .htaccess file or an Nginx configuration. Be careful here: a mistyped rule can block every visitor. Test the site from a phone on mobile data after any change.

6. Use your platform's AI setting

Most hosted platforms now have a built-in switch. The table in the next section lists where to find it. Switch it on even if you also edited robots.txt; platforms sometimes regenerate robots.txt and overwrite manual edits.

7. State your rights in plain words

Add a short line to your site's terms or copyright notice: "No part of this site may be used to train artificial intelligence systems without written permission." In the European Union this matters more than it looks. The 2019 copyright directive allows text and data mining of public content unless the rights holder has reserved those rights in a machine-readable way, and the EU AI Act requires providers of general-purpose AI models to respect such reservations. Robots.txt plus a clear notice is the most practical way to make that reservation today.

How do you block AI crawlers on WordPress, Squarespace, Wix and Substack?

Settings move around as platforms update their dashboards, so use the names below as search terms in each platform's help centre if a menu has changed.

PlatformBuilt-in optionCan you edit robots.txt?
WordPress (self-hosted)No core setting; SEO and security plugins add oneYes, through an SEO plugin or a file on the server
WordPress.com"Prevent third-party sharing" in privacy settingsLimited
SquarespaceAI crawler blocking under the crawler settingsNo, the toggle writes the rules
WixRobots.txt editor in SEO settings, with guidance on AI botsYes
Substack"Block AI training" in publication settingsNo
Cloudflare (in front of any site)Block AI bots, managed robots.txt, AI Crawl ControlIt can add the AI rules for you

If your site runs on a page builder that offers none of these, you can still put Cloudflare's free plan in front of it, provided you control the domain's DNS settings.

What can robots.txt not do?

Robots.txt cannot force a crawler to obey, cannot undo past crawls and cannot reach copies of your text on other sites. Knowing the limits keeps you from stopping at step 3 and feeling safe.

  • It is voluntary. Reputable companies say they follow it, but there is no technical barrier. Bytespider in particular has been widely reported to ignore it, and in 2025 Cloudflare said Perplexity had used undeclared crawlers to get around blocks, which Perplexity disputed.
  • It is not retroactive. Pages collected before you added the rules stay in existing datasets and archives.
  • It does not cover copies elsewhere. If a fan blog quotes three chapters, or a pirate site hosts your ebook, your robots.txt has no effect there.
  • User-triggered fetchers may skip it. OpenAI notes that robots.txt rules may not apply to ChatGPT-User, because a person asked for the page.
  • New bots appear unannounced. A list written in 2026 will be incomplete by 2027.

That's why the firewall step and a periodic review matter more than the perfect robots.txt file.

What about your books on Amazon, Google Books and pirate sites?

Your website is only one place where your text lives, and often not the main one. Retailer previews, library platforms and audiobook services are controlled by their own terms, not by your robots.txt. Read the AI clauses in each distribution contract and in any new rights agreement; several publishers and platforms have added them since 2024, some as opt-outs and some as paid licensing offers.

Pirated copies are the bigger problem. Large shadow libraries were used to train several models, which is what led to the class action that ended in the Anthropic settlement. If your book was in those datasets, our article on the first Anthropic settlement payments explains what to check. For new piracy, file takedown notices with the hosting site and with search engines, and keep a dated record of each one.

Can you protect cover art and illustrations?

Partly, but images need a separate approach. Some sites add noai and noimageai meta tags, an informal signal started by art platforms; a few crawlers respect it, many don't. For original artwork you commission or create, the University of Chicago's Glaze project offers free tools that alter images in ways people barely notice but that disrupt style copying by AI models. Check with your cover artist before applying anything to their work, since the image is often licensed rather than owned by you.

Partly, and it depends on where you and the AI company are. In the United States, robots.txt is not a law; it's a convention. Copyright questions about training are being decided case by case in the courts, and a clear opt-out mainly helps show that you did not consent. In the EU, as noted in step 7, a machine-readable reservation has a specific legal role, and courts are now drawing lines on how chatbots can reuse published text. Our report on the EU court adviser's opinion on AI chatbots covers the latest round. None of this is legal advice; for a contract or a dispute, talk to a lawyer or your national authors' society.

A ten-minute quarterly check

Set a reminder for the first week of each quarter and run through this list:

  1. Open yoursite.com/robots.txt in a browser and confirm your AI rules are still there.
  2. Compare current bot traffic in your logs or Cloudflare dashboard with your last check.
  3. Search the web for "new AI crawler user agent" and add any major new names.
  4. Check that Google still indexes the site: search for site:yoursite.com.
  5. Review the AI clauses in any new publishing or distribution contract you signed.

The Google check is the one that saves careers. An over-broad rule that hides an author site from search costs far more readers than any AI crawler ever will.

Questions about blocking AI crawlers

Will blocking AI crawlers hurt my Google ranking?

No, as long as you block AI-specific user agents such as GPTBot and Google-Extended and leave Googlebot alone. Google states that Google-Extended does not affect inclusion or ranking in Google Search.

Can I remove my writing from AI models that were already trained?

Not directly. Blocking works only for future crawls. Some companies offer opt-out or removal forms for future training, and legal settlements may compensate authors, but text already used in a trained model cannot be taken back out.

Is robots.txt enough to stop AI scraping?

No. It stops crawlers that choose to obey it, which includes the large AI companies' declared bots. For crawlers that ignore it, you need blocking at the firewall or CDN level, such as Cloudflare's AI bot setting.

Should I block ChatGPT completely?

Only if you want no presence in ChatGPT at all. Blocking GPTBot stops training use. Blocking OAI-SearchBot as well removes your site from ChatGPT search answers, which can mean fewer readers finding your books through it.

Does Substack let me block AI training?

Yes. Substack has a "Block AI training" setting in each publication's settings. It asks AI crawlers not to use your posts for training; posts remain readable to subscribers and visitors as before.

Do I need a developer to block AI bots?

Not for a standard author site. Robots.txt edits and platform toggles take minutes. A developer is worth it for custom sites, apps or membership areas with paid chapters, where firewall rules and logins have to be set up without blocking real readers or search engines.