Robots.txt, llms.txt and JavaScript rendering: why they decide if AI models can cite your site

Illustrative photo: Three technical checks determine whether AI assistants index and cite websites.

Raphaël Aubry of Howseen explains that an AI assistant’s ability to quote a page hinges on three technical checks—robots.txt permissions, whether the content is present in the raw HTML, and the optional llms.txt file—each of which can be verified from a terminal.

Robots.txt is the first gate

AI providers run separate crawlers for training (e.g., GPTBot) and for search‑oriented results (e.g., OAI-SearchBot). The robots.txt standard (RFC 9309) lets site owners allow or block each token independently. Blocking a search‑bot prevents the site from appearing in ChatGPT’s answer set, while blocking a training bot merely stops the page from being used to improve models. A catch‑all "User-agent: *" rule that disallows everything will affect every AI crawler that lacks its own group, a pattern often left over from legacy scraper defenses.

The specification resolves conflicts by picking the most specific user‑agent group, then the longest matching path, with an "Allow" rule winning ties. In practice, adding a dedicated "User-agent: GPTBot" block overrides a generic disallow and lets you fine‑tune which bots see your content. Firewalls or CDN WAFs that reject unknown agents can also stop AI crawlers before they read robots.txt, so logs should be checked for missing bot hits.

HTML vs. JavaScript rendering

Most major AI crawlers fetch the raw HTML without executing JavaScript. If a site relies on a client‑side framework that injects content into a <div id="root"> or similar marker, the crawler receives an almost empty page. A quick curl request with the GPTBot user‑agent, stripping scripts and tags, can reveal the word count; under 100 words typically signals a client‑rendered page that AI crawlers cannot read.

The guide supplies a heuristic list of SPA markers (e.g., "id=\"__next\"" for Next.js or "ng-version" for Angular). When the word count is low and any of those markers appear, the page is flagged as likely client‑rendered. The remedy is to enable server‑side rendering, static generation, or prerendering so that the essential content is present in the initial HTML response.

What llms.txt offers and its current reach

The llms.txt file, proposed by Jeremy Howard in September 2024, is a plain‑text Markdown summary placed at the site root. It must contain an H1 with the site name and can list key pages. While the format is public, no major model provider has confirmed using it to decide citation eligibility. OpenAI references it only for its own documentation index, and other vendors point developers to robots.txt and search‑bot tokens instead.

Because adoption is limited, llms.txt contributes a modest weight in visibility assessments. It is still useful for sites with extensive documentation or APIs, as AI‑powered coding assistants already read such files to locate relevant pages.

Automating the audit with the AI Visibility Checker

Howseen has packaged the three checks into a free Apify Actor called the AI Visibility Checker. Users paste up to 100 URLs, and the actor performs plain HTTP requests to fetch robots.txt, llms.txt and the raw HTML, applying the same parsing logic described earlier. Results include a score out of 100 and a one‑sentence fix for each failing check.

Big number showing that users can paste up to 100 URLs into the AI Visibility Checker.

The tool runs without headless browsers or AI models, keeping execution lightweight (256 MB memory). It can be scheduled after each deployment to catch accidental robots.txt changes or rendering regressions before they affect AI visibility.

Why site owners should care

The practical impact of these three signals is that a site can rank highly in traditional search results yet remain invisible to AI assistants that power ChatGPT, Gemini, Perplexity and similar services. For marketers and product teams, that means missed brand exposure in a fast‑growing discovery channel. For privacy‑focused organisations, the ability to block training bots while keeping search bots allowed offers a granular way to control data collection. The audit also surfaces technical debt—such as SPA‑only rendering—that may hurt both SEO and AI visibility. By integrating the AI Visibility Checker into CI pipelines, teams can ensure that any change to robots.txt, server‑side rendering strategy, or llms.txt presence is immediately flagged, turning what was previously a “once‑a‑year SEO audit” into a continuous quality gate. In short, the three checks translate directly into brand discoverability, data‑use governance, and web‑performance best practices.

Cover: Helpameout · CC BY-SA 3.0 · Wikimedia Commons. Layout and headline text by Signal Titans.

Source: Can AI crawlers read your site? robots.txt, llms.txt and JavaScript rendering, checked · AI Visibility Checker: can ChatGPT read your site? · Apify

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *