> ## Content Index
> Fetch the complete content index at: https://www.pachathemes.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ghost robots.txt for AI crawlers: let AI search in, keep AI training out
- URL: https://www.pachathemes.com/ghost-robots-txt-ai-crawlers/
- Published: 2026-11-19T18:25:00.000Z
- Updated: 2026-11-21T18:24:47.000Z
- Description: Which AI crawlers visit a Ghost site, what each one is for, and a robots.txt you can copy that allows AI search but says no to AI training.
- Author: Pacha Themes
- Tags: Ghost guides

Ghost doesn't block AI crawlers by default. To keep AI training crawlers out while still letting AI search tools find you, add a robots.txt file to your theme that disallows GPTBot, ClaudeBot, and (optionally) Google-Extended, and leaves search crawlers like OAI-SearchBot alone. You'll need a plan that lets you upload a theme.

Some AI crawlers collect pages to train AI models. Others fetch pages so an AI search tool can answer a question and link to you. As an artist, you might feel very differently about those two, and you can treat them differently.

For how AI search fits with ordinary search, see [AEO vs SEO vs GEO](https://www.pachathemes.com/aeo-vs-geo-vs-seo/).

## What does Ghost's robots.txt do by default?

Every Ghost site has a robots.txt file, a short list of rules for crawlers. Ghost's default looks like this:

```
User-agent: *
Sitemap: https://yoursite.com/sitemap.xml
Disallow: /ghost/
Disallow: /email/
Disallow: /members/api/comments/counts/
Disallow: /r/
Disallow: /webmentions/receive/
Disallow: /.ghost/analytics/api/
```

It keeps crawlers out of your admin and a few technical addresses, and points them to your sitemap. It doesn't mention AI crawlers at all, so every public page can be read by search engines, AI search tools, and AI training crawlers alike.

## Which AI crawlers visit your site, and what are they for?

The big AI companies now split their crawlers by job. A rule only applies to the name it mentions.

- **OpenAI.** `OAI-SearchBot` finds pages for ChatGPT search. `GPTBot` collects pages that may be used to train OpenAI's models. [OpenAI says](https://developers.openai.com/api/docs/bots?ref=pachathemes.com) the two settings are independent. `ChatGPT-User` visits a page when someone asks ChatGPT to open it, and OpenAI notes that robots.txt rules may not apply to it.
- **Anthropic.** `ClaudeBot` is the training crawler, `Claude-SearchBot` is for search in Claude, and `Claude-User` fetches pages a person asks about. [Anthropic says](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler?ref=pachathemes.com) all three follow robots.txt. More in [how to show up in Claude](https://www.pachathemes.com/how-to-show-up-in-claude/).
- **Perplexity.** `PerplexityBot` builds Perplexity's search index, and Perplexity says it isn't used to train AI models. `Perplexity-User` fetches pages during a conversation and generally ignores robots.txt.
- **Google.** `Google-Extended` controls whether your pages can be used to train Google's Gemini models and to ground answers in the Gemini app and Google's AI products for developers. Google says it doesn't affect your place in Google Search. AI Overviews and AI Mode are part of Search, so they follow the rules for Google's main crawler, `Googlebot`.

The same names, side by side:

| Company    | For AI search                                     | For AI training                                                           | When someone asks about a page |
| ---------- | ------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------ |
| OpenAI     | OAI-SearchBot                                     | GPTBot                                                                    | ChatGPT-User                   |
| Anthropic  | Claude-SearchBot                                  | ClaudeBot                                                                 | Claude-User                    |
| Perplexity | PerplexityBot                                     | None named (Perplexity says it doesn't train on crawled pages)            | Perplexity-User                |
| Google     | Googlebot (Google Search, including AI Overviews) | Google-Extended (a setting your robots.txt names, not a separate crawler) | None named                     |

Crawler names and rules change, so check each company's own crawler page before you rely on a rule.

## A robots.txt that allows AI search and blocks AI training

If you're happy for AI tools to find and link to your work, but don't want it used to train their models, this is a reasonable starting point. It keeps Ghost's defaults and adds rules for the training crawlers:

```
User-agent: *
Sitemap: https://yoursite.com/sitemap.xml
Disallow: /ghost/
Disallow: /email/
Disallow: /members/api/comments/counts/
Disallow: /r/
Disallow: /webmentions/receive/
Disallow: /.ghost/analytics/api/

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /
```

Replace `yoursite.com` with your own address. Search crawlers like `OAI-SearchBot`, `Claude-SearchBot`, `PerplexityBot`, and `Googlebot` still follow the first group, so they can read your public pages as before.

**One trade-off:** because `Google-Extended` also covers answers in the Gemini app, blocking it can keep your work out of those answers too. If being found in Gemini matters more to you than keeping your work out of Google's training, leave that group out.

If you'd rather stay out of AI answers altogether, you can add the search crawlers too. Just know the trade: fewer people will find you that way, and pages someone pastes into a chat may still be fetched.

## How do you add a robots.txt to a Ghost site?

Ghost doesn't have a robots.txt setting in its admin. Instead, a theme can include its own robots.txt, and Ghost uses it in place of the default. On Ghost(Pro), uploading a theme needs the Publisher plan or above; Starter only allows the built-in theme (see [Which Ghost(Pro) plan do you need?](https://www.pachathemes.com/ghost-pro-pricing/)).

1. **Copy Ghost's rules.** Open `yoursite.com/robots.txt` and copy what's there.
2. **Add the file to your theme.** In Settings, find Theme under Site, click Change theme, open Installed, and pick Download from your theme's menu. Unzip it, and create a file called `robots.txt` in its top folder, next to `package.json`. Paste Ghost's rules and add your own.
3. **Upload the theme.** Zip the folder and upload it from the same Change theme screen.
4. **Check.** Open `yoursite.com/robots.txt` again. You should see your new rules.

**Tip:** the file lives in your theme. When you install a theme update, add your robots.txt to the new version before you upload it, or it will go back to Ghost's default. Keep a copy somewhere safe.

**Let Claude do the file work.** Unzipping a theme, adding a file, and zipping it again is the kind of task an AI assistant handles well. Claude Code can add robots.txt to your theme folder and zip it for you. Then Claude in Chrome can upload it, with you choosing the file when Ghost asks. Check yoursite.com/robots.txt afterward.

## How Index handles crawlers

[Index](https://www.pachathemes.com/index-ghost-theme/) doesn't include a robots.txt of its own, so Ghost's default stays in place until you decide otherwise, and adding your own as above works the same way. What Index does add is on the other side: it describes you and your projects in structured data, so the crawlers you do let in can tell who made the work and what each project is. More in [Ghost CMS SEO for portfolios](https://www.pachathemes.com/ghost-cms-seo/).

## What can't robots.txt do?

robots.txt is a polite request. Well-known crawlers follow it, but it doesn't lock anything, and it doesn't remove work that's already been collected. Anything that must stay private belongs behind Ghost's members access, or off the public web. Your images can still be shared, screenshotted, or posted elsewhere by people, which no file can stop.

For the bigger picture, start with [AEO vs GEO vs SEO for artists and photographers](https://www.pachathemes.com/aeo-vs-geo-vs-seo/).

## Questions people ask

### Does Ghost block AI crawlers?

No. Ghost's default robots.txt only keeps crawlers out of the admin and a few technical paths. AI search crawlers and AI training crawlers can read your public pages unless you add rules.

### Can I block AI training but still appear in ChatGPT search?

Yes. OpenAI uses separate crawlers: GPTBot for training and OAI-SearchBot for ChatGPT search. Disallow GPTBot and leave OAI-SearchBot allowed; OpenAI says the two settings are independent.

### How do I edit robots.txt on Ghost?

Add a file named robots.txt to the top folder of your theme and upload the theme again. Ghost uses the theme's file in place of its own. On Ghost(Pro) this needs the Publisher plan or above, since Starter only allows the built-in theme.

### Does robots.txt make my site private?

No. robots.txt is a request that well-known crawlers follow. Anything you need to keep private should be behind Ghost's members access or not published at all.

---

[Index](https://www.pachathemes.com/index-ghost-theme/) is our portfolio theme for Ghost, with 24 layouts and structured data for every project. [Take the tour](https://www.pachathemes.com/index-ghost-theme/) or [try the live demo](https://index.pachathemes.com/?ref=pachathemes.com).