Skip to content
bogl.ai

Fix guide

How to fix robots.txt so AI crawlers can read your site

What to change in robots.txt so GPTBot, OAI-SearchBot, ClaudeBot and other AI crawlers can read your site, on Wix, Squarespace, WordPress or Shopify.

By bogl.ai · Updated

Check if your site has this problemFree, no sign-up · Score out of 100 · About 10 seconds

What the problem is

Every website can have a robots.txt file, at /robots.txt (for example yourbusiness.co.uk/robots.txt). It tells crawlers which parts of the site they may read. Each AI company uses its own named crawlers, such as OAI-SearchBot and GPTBot (OpenAI), Claude-SearchBot and ClaudeBot (Anthropic), PerplexityBot, Google-Extended and Bingbot.

If robots.txt has a Disallow: / rule for one of these names, or for User-agent: * (every crawler), that crawler stays away from the whole site.

A robots.txt that returns a server error (a 5xx status) is a problem too. Google, for one, documents that it treats the whole site as off-limits while its robots.txt returns a server error.

Google-Extended controls whether Google may use your content to train its Gemini models; Google says it doesn't affect Google Search. Google's common crawlers page also says Google intends to support a shared AI-training preference signal, user-agent: __usage_ai-training, in early 2027. It is not live yet.

Why it matters for AI search

AI assistants that search the web read pages through these crawlers. A blocked crawler can't fetch your pages, so that assistant can't describe or recommend you from your own website, and it may rely on what other sites say about you instead.

Some crawlers collect training data (for example GPTBot, ClaudeBot, CCBot) and others fetch pages to answer a search (for example OAI-SearchBot, Claude-SearchBot, PerplexityBot). Blocking training crawlers is a reasonable choice for some businesses. Blocking the search crawlers means you're left out of those assistants' answers.

How to fix it

  1. Open your robots.txt in a browser: your web address followed by /robots.txt.
  2. Look for a User-agent: line naming an AI crawler (or *) followed by Disallow: /. That pair blocks the whole site.
  3. Remove those lines, or change Disallow: / to Allow: / for the crawlers you want to let in. Leave rules for private areas (such as /admin or /checkout) as they are.
  4. If robots.txt doesn't load at all, or shows an error page, ask your host to make it load normally. A file containing just the two lines below is enough.
Example
User-agent: *
Allow: /

On your site builder

Wix

  • In your Wix dashboard, go to SEO & GEO, then Tools and settings → Robots.txt Editor. Remove the Disallow lines for the AI crawlers you want to allow, and save. Reset to Default puts back Wix's standard file.
  • Wix's own help article on blocking AI crawlers suggests adding Disallow lines for crawlers such as GPTBot and CCBot, so check whether someone followed it.

Squarespace

  • Squarespace doesn't let you edit robots.txt. In Settings → Crawlers, turn off “Block known artificial intelligence crawlers” (and “Block Search engine crawlers”). That setting doesn't cover every AI crawler, so some blocks can't be changed on Squarespace.

WordPress

  • On WordPress.com, check Settings → Reading → “Prevent third-party sharing”: it adds AI crawlers to your robots.txt.
  • On your own WordPress site, edit robots.txt in your SEO plugin: Yoast SEO under Tools → File editor; Rank Math under General Settings → Edit robots.txt (Advanced Mode). A real robots.txt file in the main folder takes priority over both.

Shopify

  • Shopify's robots.txt only changes if your theme has a robots.txt.liquid template (Online Store → Themes → … → Edit code). If it does, remove the rules blocking AI crawlers; deleting the template puts back Shopify's default. Duplicate your theme before editing code.

Menus change from time to time. If a setting has moved, your site builder's help pages will have the current steps.

How to check it's fixed

  • Open /robots.txt again and make sure it loads and no longer blocks the crawlers you want.
  • Run the free check on bogl.ai again. Results are kept for 24 hours, so if you checked the same site earlier today you'll see the earlier result; check again tomorrow. The crawler table on your result shows each one as Allowed or Blocked.

Related

While you're in robots.txt, add a Sitemap: line so crawlers find every page. How to create a sitemap for your website

If robots.txt lets AI crawlers in but they still get a security check instead of your page: Is bot protection blocking AI crawlers from your site?

See which AI crawlers your robots.txt lets in, crawler by crawler: AI robots.txt checker

robots.txt is one of several things a website check should cover for Google and AI: Free SEO check for your website: Google and AI search

Questions

What changes do I need to make to robots.txt for AI crawlers?

Remove any Disallow: / under a User-agent: line that names an AI crawler, or under User-agent: *. To appear in ChatGPT search, OpenAI recommends allowing OAI-SearchBot. If you only want to keep your content out of AI training, you can block GPTBot and still allow OAI-SearchBot: OpenAI says each setting is independent.

How do I check if my robots.txt blocks AI crawlers?

Open your web address followed by /robots.txt and look for a User-agent: line naming an AI crawler, or *, followed by Disallow: /. Our free AI robots.txt checker reads the file for you and shows each crawler, including GPTBot and OAI-SearchBot, as Can read or Blocked.

Should I block GPTBot?

It's your choice. OpenAI says disallowing GPTBot indicates your content should not be used to train its models. ChatGPT search uses a different crawler, OAI-SearchBot, and OpenAI says each setting is independent, so you can block one and allow the other.

Does blocking Google-Extended affect Google Search?

No. Google says Google-Extended does not affect whether your site is included in Google Search and is not used as a ranking signal. It controls whether Google may use your content for Gemini training and grounding.

How long does a robots.txt change take to work?

It depends on the company. OpenAI says its search systems can take about 24 hours to adjust after you update robots.txt.

Does robots.txt stop every AI tool?

No. It is a request, not a lock: the robots.txt standard says its rules are not a form of access authorization. Fetches a person asks for, such as by ChatGPT-User or Perplexity-User, may not follow robots.txt rules.

Free check

Check your whole website

The free check looks at the main things that affect whether AI tools can find and read your website: crawlers, bot protection, readable text, business details, titles and more. You get a score out of 100 and your top 3 issues in about 10 seconds.

Want the fixes ready to paste? The £39 full report checks up to 15 pages and gives you every fix, filled in for your site. See a sample report.