Skip to content
SPURT.

AI search

Is your website invisible to AI? A 5-minute self-test (curl, robots.txt, schema, Bing)

Check in five minutes whether ChatGPT, Claude, Perplexity and Gemini can read your site: curl for server HTML, robots.txt rules, a schema check and Bing.

By , Engineering

Published · 8 min read

In this article · 7
  1. Test 1: Is your content in the HTML your server sends?
  2. Test 2: Do robots.txt rules or firewalls block AI crawlers?
  3. Test 3: Is your structured data actually in the HTML?
  4. Test 4: Has Bing indexed your site?
  5. What do your results mean?
  6. What can’t these tests tell you?
  7. Sources

Short answer Run four checks. First, fetch your page with curl and confirm your main heading and copy are in the raw HTML. Second, read your robots.txt for rules blocking GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended. Third, confirm your structured data is a real script tag. Fourth, search Bing for site:yourdomain. Each failure makes AI assistants less likely to cite you.

We wrote this after finding that our own old website failed the first test. It sent AI crawlers an HTML page with no heading and no body text, while looking perfect in a browser. The full story is in why ChatGPT couldn't read our website. This post is the short checklist version, for any site, and one part of our wider guide to getting your business mentioned by ChatGPT, Gemini and Perplexity.

What you need: a terminal. On a Mac, that's the Terminal app. Linux has curl built in. Windows 10 and later include curl.exe (Microsoft). In PowerShell, type curl.exe, not curl, because in Windows PowerShell curl is an alias for a different command. Replace https://www.example.com with your own site throughout.

Test 1: Is your content in the HTML your server sends?

AI crawlers from OpenAI, Anthropic and Perplexity read the HTML your server sends. They don't run your JavaScript. Vercel and MERJ found that "none of the major AI crawlers currently render JavaScript", with Google's and Apple's as the exceptions (Vercel). So fetch the page the way GPTBot does:

bash
SITE=https://www.example.com
UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot'

curl -sL -A "$UA" "$SITE/" -o page.html -w "%{http_code} %{size_download} bytes\n"
grep -c '<h1' page.html
grep -ci 'a sentence you can see on your home page' page.html

The user-agent string is GPTBot's, as published in OpenAI's crawler docs. For the last command, copy a real sentence from your page as it appears in the browser.

OutputPassProblem
Status code200403, 503 or a redirect loop: something is blocking or misrouting bots (see Test 2)
<h1 count1 or more0: no main heading in the raw HTML
Your sentence1 or more0: the text only appears after JavaScript runs

grep -c counts matching lines, and many sites send their HTML as a single long line, so read the numbers as "0 = missing, 1 or more = present".

On Windows, the equivalent is:

powershell
curl.exe -sL -A "GPTBot/1.4" https://www.example.com/ -o page.html
findstr /i /m /c:"a sentence you can see on your home page" page.html

findstr /m prints page.html if the sentence is there, and nothing if it isn't.

If Test 1 fails, stop here. Nothing else on this list matters until your content is in the HTML. The fix is server rendering or pre-rendering, and the post about our own site shows what it looked like for us, with a script that counts every word a crawler can read.

Test 2: Do robots.txt rules or firewalls block AI crawlers?

First, read the rules:

bash
curl -s "$SITE/robots.txt"

Look for Disallow: / under any of these user agents, or under User-agent: *:

User agentCompanyWhat blocking it does
OAI-SearchBotOpenAISites that opt out "will not be shown in ChatGPT search answers" (OpenAI)
GPTBotOpenAIOpts your content out of model training, not search
ChatGPT-UserOpenAIUser-triggered fetches; OpenAI says "robots.txt rules may not apply"
Claude-SearchBotAnthropic"May reduce your site's visibility and accuracy in user search results" (Anthropic)
ClaudeBotAnthropicOpts your content out of model training
Claude-UserAnthropicStops Claude fetching your page when a user asks
PerplexityBotPerplexityRemoves you from Perplexity's search index (Perplexity)
Perplexity-UserPerplexityUser-triggered; Perplexity says it "generally ignores robots.txt rules"
Google-ExtendedGoogleGemini training and grounding in the Gemini apps. "Does not impact a site's inclusion in Google Search" (Google)
BingbotMicrosoftRemoves you from Bing, and so from Copilot

One rule catches people out. Under the robots.txt standard, a crawler that finds a group naming it follows that group only. It uses the * group only when no group names it (RFC 9309). So User-agent: GPTBot / Disallow: / blocks GPTBot even if User-agent: * allows everything.

If you want to stay out of Google's AI Overviews and AI Mode but remain in regular search, Google-Extended isn't the switch. Search Console now has a separate setting under Settings → Search generative AI. It defaults to Include, and Google says it isn't used as a ranking signal for the rest of Search (Search Console Help). If you do want to appear, check nobody has set it to Exclude.

Next, check what your firewall or CDN actually returns to each crawler:

bash
for bot in GPTBot OAI-SearchBot ClaudeBot Claude-SearchBot PerplexityBot; do
  printf "%-17s" "$bot"
  curl -s -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0 (compatible; $bot)" "$SITE/"
done

Every line should say 200. A 403 or 503 usually means bot protection is blocking by user agent. This matters more than it used to: since 1 July 2025, Cloudflare asks every new domain whether to allow AI crawlers, and "every new domain starts with the default of control," meaning blocked (Cloudflare). If your site is on Cloudflare, check its AI crawler settings.

One caveat: some CDNs recognise real crawlers by IP address, so a request from your laptop can be treated differently from the real bot. Your server or CDN logs are the final word. Search them for the bot names and the status codes they received.

Test 3: Is your structured data actually in the HTML?

bash
grep -o '<script[^>]*application/ld+json' page.html | wc -l

This counts real JSON-LD script tags in the HTML you saved in Test 1. Zero means crawlers that don't run JavaScript see no structured data.

Watch for one trap. Don't just search for the text application/ld+json. Some frameworks put that string in the page's data payload and add the actual tag with JavaScript after the page loads. The text is there; the tag isn't. We found exactly this on one of our own earlier builds while writing this post. In Next.js, the cause is adding JSON-LD through the next/script component. The Next.js docs say that since JSON-LD "is structured data, not executable code, a native <script> tag is the right choice."

Then paste your URL into Google's Rich Results Test and the Schema Markup Validator, and check two things:

  • It parses without errors.
  • It matches the page. Google lists "making sure your structured data matches the visible text on the page" as an AI-features best practice (Google). The business name, phone and address in your markup should be exactly what visitors see.

Google's tools can pass even when Test 3 fails, because Google renders JavaScript. Google says it can process structured data "available in the DOM when it renders the page" (Google). The non-rendering AI crawlers can't.

Keep this test in proportion. Google says "there's no special schema.org markup you need to add" for its AI features. Structured data states your facts precisely; it doesn't get you cited on its own.

Test 4: Has Bing indexed your site?

Search on bing.com:

text
site:example.com

Then search your business name. Few or no results means Bing hasn't indexed much of your site. That matters because Copilot answers from Bing. A Seer Interactive study also found 87% of the ChatGPT search citations it sampled matched Bing's top results. The fix is free: set up Bing Webmaster Tools and submit your sitemap. Our Bing Places and Webmaster Tools guide covers it.

Run the same site: search on Google, and use Search Console's URL Inspection on your main pages.

What do your results mean?

TestIf it failsFix
1. Content in raw HTMLAI crawlers see an empty or partial pageServer-render or pre-render your content
2. Robots and firewallSpecific assistants can't reach you at allAllow search crawlers in robots.txt and your CDN or bot protection
3. Structured dataYour business facts aren't machine-readable for non-JS crawlers, or they contradict the pageOutput JSON-LD as a real script tag that matches the visible page
4. Bing indexYou're missing from Copilot's source, and likely from much of ChatGPT searchBing Webmaster Tools, a sitemap, IndexNow

For comparison, here's a pass. The Siddhani Enterprises site we built returns 200 to every crawler above. Its headline is in the raw HTML, and it has three real JSON-LD tags. Its robots.txt allows everything.

What can't these tests tell you?

Whether an assistant will actually mention you. Passing all four means crawlers can read you. Being cited depends on what your pages say and what the rest of the web says about you: consistent listings, reviews and real mentions. Read how to get your business mentioned by ChatGPT, Gemini and Perplexity for that part, and our NAP checklist for getting your business details consistent.

If any test failed and you're not sure what's causing it, that diagnosis is where our SEO work starts. Send us the URL and the output of these commands, and we'll tell you what we see.

Sources

Frequently asked questions

Can ChatGPT see content that loads with JavaScript?

Usually not. Vercel and MERJ's analysis of crawler traffic found that OpenAI's and Anthropic's crawlers download JavaScript files but don't execute them, and none of the major AI crawlers they measured rendered JavaScript except Google's and Apple's. If your text only appears after scripts run, assume ChatGPT, Claude and Perplexity can't see it. Put it in the HTML your server sends.

Does blocking Google-Extended remove my site from AI Overviews?

No. Google says Google-Extended doesn't affect inclusion in Google Search and isn't a ranking signal. It controls whether your content is used to train Gemini models and to ground answers in the Gemini apps. For AI Overviews and AI Mode, Search Console has a separate setting under Settings, Search generative AI, which defaults to Include.

My robots.txt allows everything. Can AI crawlers still be blocked?

Yes. Firewalls, CDN bot protection and security plugins can block crawlers before robots.txt is ever read. Cloudflare, for example, has asked new domains since July 2025 whether to allow AI crawlers, with blocking as the default. Check the HTTP status each crawler gets with curl, and confirm in your server or CDN logs.

Do I need schema markup for ChatGPT to read my site?

No. Google says there's no special schema.org markup needed for its AI features, and OpenAI, Anthropic and Perplexity don't require it either. Structured data is still useful for search features and for stating your business details precisely. It must match what's visible on the page, and it needs to be a real script tag in your HTML, not injected later.

Start a project

Tell us what you’re building. One of the founders — not a sales team — comes back with questions, a plan and a fixed quote.