Sub topic 9
Letting Crawlers Fetch and Read the Page
Assume you know basic HTML, how search engines crawl pages, and that AI assistants can use web search. This chapter focuses on access and rendering: whether a crawler can request your page and whether it can understand the useful content after the page loads.
Crawling has two separate requirements
An AI search system generally needs to:
- Fetch the URL.
- Read the page content.
A page can fail either step. A robots.txt rule may block a crawler from fetching the page. A login wall, server error, or firewall may also prevent access. If the crawler receives the page but the comparison content appears only after a failed JavaScript request, it may have little useful text to read.
Access does not guarantee inclusion. A crawler may fetch a page and still decide that it is not useful, trustworthy, relevant, or fresh enough to cite.
Check access rules
The robots.txt file gives crawler-specific instructions. It is normally placed at the site's root, such as https://example.com/robots.txt. Rules are matched by user-agent name, so confirm the current names and policies in each provider's documentation before adding an exception.
# robots.txt
# Confirm these user-agent names before deployment.
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: *
Allow: /Do not assume that allowing a crawler guarantees access. Hosting rules, a web application firewall, rate limits, DNS problems, and authentication can still block requests. Test the published URL from an appropriate environment and inspect the response status. A normal public page should usually return 200 OK, not a redirect chain, 403 Forbidden, or 5xx server error.
Also check for page-level controls:
- A
noindexdirective can discourage indexing. - A canonical URL can tell systems which version to prefer.
- A login or consent barrier can hide the comparison.
- A temporary outage can make a normally accessible page unavailable.
Make the important content readable
Put the title, summary, criteria, product names, table values, and methodology in the initial HTML when practical. Server-side rendering or static generation helps because the first response already contains meaningful content.
Client-side JavaScript is still useful for filters and sorting, but do not make it the only way to reveal the products or their scores. Avoid placing key facts inside a canvas, an image, or an interaction that requires a crawler to click a control. Use real headings, paragraphs, links, and table elements.
A quick review should answer these questions:
- Does the raw HTML contain the main comparison?
- Can each product and criterion be identified without running custom scripts?
- Do links point to public, stable URLs?
- Does the page work when JavaScript is disabled?
- Are error messages or placeholder text accidentally included in the rendered output?
> callout note > Treat crawl access as a prerequisite, not an optimization. A perfectly structured comparison cannot be retrieved or cited if the intended crawler cannot reach it.
Test before publishing
Use your server logs, a crawler test supplied by the relevant platform, and a browser with JavaScript disabled. Compare the raw response with the browser's rendered DOM. If they differ, verify that the important facts appear in both or that the rendered version works reliably.
Do not spoof a crawler's identity to bypass access controls. Test only systems and pages you operate or are authorized to inspect.
Exercise
A comparison page returns 200 OK, but its product rows appear only after a JavaScript request that fails for bots. What should you change first?
Show answer
Put the essential product data in the initial HTML through server-side rendering or static generation. Keep JavaScript for optional interactions such as filtering and sorting.