Skip to content

Free steps

Is your website shutting out ChatGPT search? The 10 second check

By Ranklore ยท Published

Every website can have a small text file called robots.txt. Google's own guide puts it this way: "A robots.txt file tells search engine crawlers which URLs the crawler can access on your site." OpenAI's search crawler reads the same file. One wrong line in it, sometimes left over from when the site was being built, can ask ChatGPT search to stay away from your whole site.

OpenAI's crawler page says: "OAI-SearchBot is used to surface websites in search results in ChatGPT's search features." It also says: "Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links."

So the first thing to check is not your content. It is whether the door is open.

Four steps

  1. Open your robots.txt

    In your browser, type your website address and add /robots.txt at the end, like yourwebsite.com/robots.txt. You will see a short plain text file. If you get a plain "page not found", there is no robots.txt, and crawlers treat that as no rules. If you see a server error instead, ask whoever looks after your site, because crawlers can treat an error differently from a missing file.

    A phone browser open at ranklore.ai/robots.txt, showing a short plain text file that allows every crawler, with OAI-SearchBot and GPTBot each named and allowed.
  2. Find which of the three cases you are in

    Case A. You see these two lines together. ChatGPT search is asked to stay out.

    Example lines
    User-agent: OAI-SearchBot
    Disallow: /

    Case B. OAI-SearchBot is not named, but you see these two lines together. Every crawler the file does not name separately is asked to stay out, and that includes this one. It also includes Google. This can be a leftover from a site that was hidden while it was being built.

    Example lines
    User-agent: *
    Disallow: /

    Case C. Neither of the above. A Disallow line followed by a folder, such as Disallow: /cart, only closes that folder. Your pages are open to ChatGPT search as far as this file goes.

    Three example files stacked and labelled A, B and C. A and B each show a Disallow: / line in red. C shows Disallow: /cart in green.

    Not sure which case you are in? Copy this prompt into ChatGPT, Claude or Gemini and paste your whole file where it says.

    Prompt to paste
    Here is the robots.txt file from my website [YOUR SITE URL]:
    
    [PASTE YOUR ROBOTS.TXT HERE]
    
    For each of these crawlers, tell me whether it is allowed to crawl my homepage: OAI-SearchBot, GPTBot, Googlebot.
    For each one, quote the exact lines in my file that decide the answer. If no line names the crawler, say which general rule applies to it.
    Do not guess. If the file is unclear or cut off, say so and ask me.

    What you should get back: one line per crawler saying allowed or blocked, with the lines from your file that decide it.

    Limit: the AI only sees what you paste. It can misread a long file, so check its answer against the three cases above.

  3. Copy the lines you want

    Pick one of the two blocks. Put it in your robots.txt, and remove the old lines that block these crawlers.

    If you are in Case B, adding a block is not enough. The star rule would still shut out Google and every other search engine. Remove the "Disallow: /" line under "User-agent: *" as well, unless you really do want the whole site hidden from search. Where you edit the file depends on your website builder, so search its help pages for "edit robots.txt", or send the block to whoever looks after your site.

    Block 1. Allow ChatGPT search, and allow training.

    Block 1
    User-agent: OAI-SearchBot
    Allow: /
    
    User-agent: GPTBot
    Allow: /

    Block 2. Allow ChatGPT search, say no to training.

    Block 2
    User-agent: OAI-SearchBot
    Allow: /
    
    User-agent: GPTBot
    Disallow: /

    These are two different crawlers. OpenAI says GPTBot "is used to crawl content that may be used in training our generative AI foundation models", and that "each setting is independent of the others". Blocking training does not block search, and allowing search does not allow training.

    Two doors side by side. The Search door, for OAI-SearchBot, is open and its switch says Allowed. The Training door, for GPTBot, is locked and its switch says Blocked.
  4. Check nothing else is in the way, then wait a day

    A robots.txt file is not the only gate. OpenAI recommends "allowing OAI-SearchBot in your site's robots.txt file and allowing requests from our published IP ranges". If your site sits behind a security service or a bot blocker, look for a setting about AI crawlers and make sure the search crawler is allowed.

    Then wait. OpenAI says "it can take ~24 hours from a site's robots.txt update for our systems to adjust."

What this check cannot do

Allowing the crawler only opens the door. It is not a promise that ChatGPT will mention your business. Your pages still have to be the useful answer to the question someone asked.

It covers ChatGPT search only. For Google's AI answers, the control is your ordinary Googlebot rule. Google says "robots.txt directives for Googlebot is the control for site owners to manage access to how their sites are crawled for Search."

When a ChatGPT user asks a question, ChatGPT may visit a page with a different agent called ChatGPT-User. OpenAI says "robots.txt rules may not apply" to those visits, and that ChatGPT-User "is not used to determine whether content may appear in Search."

Want to see a working file? Ours is at ranklore.ai/robots.txt.

Sources

OpenAI: Overview of OpenAI Crawlers.

Google Search Central: Introduction to robots.txt.

Google Search Central: AI features and your website.

Want a wider look at your site? Try the free website check or say hello.