Technical SEO for AI: Robots.txt, GPTBot & llms.txt Explained | 3.4. AEO Course by Ahrefs

Ahrefs· 8 min· 1,315 words· 6 min read· English ·Watch on YouTube

This is the full transcript of Technical SEO for AI: Robots.txt, GPTBot & llms.txt Explained | 3.4. AEO Course by Ahrefs, published on YouTube by Ahrefs. Every paragraph carries the moment it was spoken, so you can click any line to jump straight to that point in the video, search the whole thing for a word, or copy it out.

0:00Hey, it's Sam Oh, and welcome to the fourth lesson in this module, which is on the technical side of AEO. Now, I know technical can sound intimidating, but this lesson isn't about rewriting your site's code. It's about making sure that AI can actually access and understand your content. And while access and understand might sound rudimentary for some of you, the reality is a lot of sites are accidentally

0:24blocking AI without even knowing it. According to our data, around 5.9% of 140 million websites are blocking GPTBot, which is Open AI's crawler. That's millions of sites that are invisible to ChatGPT. So, in this lesson, I've got six technical checks and tips for you to make sure AI can find you so that it can promote you. Let's get started. So, the first thing you need to check is your robots.txt file. Robots.txt is a file on your site that tells crawlers what they can and can't access. And the thing is, it's not just Google's crawler you need to think about anymore. There are now dozens of AI-specific bots that crawl the web. The

1:07main ones you should know about are GPTBot and OAI search bot from Open AI, ClaudeBot from Anthropic, and Google extended from Google. If any of these are blocked in your robots.txt, you're asking those AI platforms not to crawl your content. And assuming they obey your rules, they sure won't be recommending your pages then if they don't know what's on them. Now, you might not have blocked these bots intentionally, but a lot of sites inherit robots.txt rules from templates or old configurations. And some platforms add blocks by default. For example, Cloudflare has a feature called

1:44instruct AI bot traffic with robots.txt. That's now enabled by default. When this is on, Cloudflare automatically updates your robots.txt to signal that your content shouldn't be used for AI training. So, if your site is on Cloudflare, you could be blocking AI crawlers without even realizing it. So, the first step is simple. Go to yourdomain.com/robots.txt and look for any lines that mention GPTBot, ClaudeBot, GoogleExtended, or

2:14OAISearchBot. If you see a disallow rule next to any of those, you're blocking that AI crawler. You can also use Ahrefs Site Audit to check this. Run a crawl on your site and it'll flag any robots.txt rules that might be blocking AI crawlers. Now, while we're on the topic of files AI reads, I want to make a quick note on something you might have heard of called

2:35llms.txt. This is a proposed standard, kind of like robots.txt, but specifically designed to tell AI systems about your site. The idea is that you create a file at yourdomain.com/llms.txt that gives AI a summary of who you are, what your site covers, and where to find your most important content. It's useful in theory, but as of right now, no major

3:01LLM provider officially supports it. OpenAI doesn't use it. Anthropic publishes one on their own site, but hasn't confirmed their crawlers actually read it. And Google hasn't adopted it either. So, should you create one? Well, I don't think it'll hurt you, but I wouldn't prioritize it over the other things we've talked about in this lesson. Robots.txt is still the file

3:23that actually matters most right now. All right, the second thing to check is how your site handles JavaScript. Some AI platforms can render JavaScript and some can't. Without getting too technical, Gemini and Copilot can render JS, while ChatGPT's crawler does not. So, if your content relies on JavaScript to load, which is common with single-page apps and some React or Angular frameworks, ChatGPT literally can't see your content. It visits the page and gets an empty shell. The fix here is server-side rendering, With which means your server sends the fully rendered HTML to the crawler instead of relying on JavaScript to build the page in the browser. If you're already doing

4:03this for SEO, you're covered. If not, it's worth looking into, especially if AI visibility matters to you. A quick way to test this is to disable JavaScript in your browser and visit your own site. If the content disappears, you have a JavaScript rendering issue that's affecting AI crawlers, too. The third thing to consider is page speed. Now, you might be thinking page speed is an SEO thing, not an AEO thing, but it can actually matter more for AI retrieval than for traditional search. When AI systems retrieve information in real time, they're fetching, parsing, and chunking your pages on the fly. And if your page takes too long to load, it can get

4:45dropped before it's even scored, so it won't be making it into an AI response, even if the content is great. The good news is that if you've already optimized your core web vitals for SEO, you're most of the way there. Fast-loading pages with clean HTML benefit both Google and AI systems. And that brings us to the fourth tip, create clean HTML

5:07structure. This one's straightforward. AI systems parse your content by following your HTML structure. So, if your headings are logical, your sections are well organized, and your paragraphs are focused on one idea each, AI has an easier time extracting the right information. This ties directly back to the content principles we covered in lesson 3.1, bluff, atomic content, and

5:32entity-rich writing. Those principles aren't just about writing style, they're about making your content technically parsable for AI. So, when you're structuring your pages, use proper heading hierarchy, H1 for for title, H2s for the main sections, and H3s for subsections. And make sure each section can stand on its own because AI might chunk your content at any heading boundary. The fifth tip is about schema markup. Schema markup, which is also called structured data, is code you add to your pages to help search engines understand your content. Things like article schema, FAQ page, how-to, and local business. Now, does it help with

6:13AEO? Honestly, the evidence is mixed. There's no confirmed data that adding schema directly improves your chances of being cited by AI. But it doesn't hurt. And if you're already using it for SEO, there's no reason to remove it. I wouldn't spend a ton of time on schema specifically for AEO, but if you're setting up a new page, adding the right schema types is a good habit that makes your content easier for any system to understand. All right, the sixth tip that I have for you

6:42is to optimize for AI hallucinated URLs. AI assistants sometimes make up URLs that don't exist on your site. They'll recommend a page to a user. The user clicks it, and they hit a 404 error. And this happens a lot more often than you'd expect. According to our data, AI assistants send visitors to 404 pages 2.87 times more often than Google Search does. And ChatGPT is the biggest offender with about 1% of its clicked URLs leading to 404 pages. Now, rather than letting that 404 be the end of a visitor's browsing journey, you should either fix or optimize those pages to get more out of them. You can do that by

7:23checking your analytics for pages that are getting traffic from AI referrers, but returning a 404 status. If you spot a hallucinated URL that's getting consistent traffic, set up a redirect to the most relevant real page on your site. That way, you're capturing traffic that would otherwise be lost. Now, while creating content and getting cited is a big part of AEO, it's only part of the picture. You also need to know if it's actually working. And that's exactly what we'll be covering in module four, which is all about measuring and tracking your AI visibility. I'll see

7:57you there.

Where these words come from. This is the caption track YouTube holds for this video, written automatically by YouTube rather than by the creator. We read it, tidied the line breaks and laid it out so it can be read. The plain text version is at https://viewrankai.com/tools/youtube-transcript/RyJYGpVyl0o.txt.

All rights in this video belong to Ahrefs. Watch it on YouTube. If this is your video and you would rather this page did not exist, tell us and we will remove it.