Sub topic 3
Letting crawlers fetch and read the page
This chapter assumes you know basic HTML, how search engines crawl pages, and how to read robots.txt rules. It covers crawl access first, then the related practices for comparison and best-of pages: fair treatment, freshness, third-party sources, measurement, and common mistakes.
Letting crawlers fetch and read the page
An AI search system can cite your page only if its crawler can fetch the HTML and read the content. Crawler rules live in robots.txt, and each crawler is matched by its user-agent name. Check each vendor's documentation for current names.
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: *
Allow: /Put the key comparison content in the server-rendered HTML. If the table appears only after JavaScript runs, some crawlers will see an empty page.
Test the rules with Python's standard library:
from urllib.robotparser import RobotFileParser
parser = RobotFileParser()
parser.set_url("https://example.com/robots.txt")
parser.read()
url = "https://example.com/compare/tool-a-vs-tool-b"
for agent in ["OAI-SearchBot", "PerplexityBot"]:
allowed = parser.can_fetch(agent, url)
print(f"{agent}: {'allowed' if allowed else 'blocked'}")Treating competitors fairly and disclosing your interests
If your product appears in its own list, say so near the top. Apply the same criteria and the same evidence to every product, including your own. Do not hide your product's weak points.
Keeping pages current
Show a "last checked" date and review prices and features on a fixed schedule, such as every quarter. Stale prices make a page less useful and less likely to be cited.
Why other sites' lists and reviews matter too
AI assistants often weigh independent lists and reviews alongside your page. Earn accurate mentions on reputable sites, and ask owners to correct outdated listings that describe your product.
Checking whether the page is retrieved, cited and clicked
Check your server logs for requests from each crawler user agent. Each month, ask AI assistants your target questions and record whether your page is cited. Compare referral traffic from AI sources in your analytics tool.
| Check | Where to look | How often |
|---|---|---|
| Crawler visits | Server logs | Weekly |
| Citations | Manual test queries | Monthly |
| Referral clicks | Analytics | Monthly |
Common mistakes and how to avoid them
- A broad
Disallowrule blocks a crawler by accident. Test rules after every change. - The table loads only through scripts, so crawlers see no data.
- Your product wins every row without published evidence.
- The page shows old dates or prices.
Exercise
Exercise
Your robots.txt contains "User-agent: *" followed by "Disallow: /compare/". Does this block the OAI-SearchBot crawler from the comparison pages, and how would you fix it?
Show answer
Yes. The wildcard group applies to any crawler that has no more specific group, so it blocks OAI-SearchBot from /compare/. Add a "User-agent: OAI-SearchBot" group with "Allow: /compare/" (or remove the Disallow line), then confirm the change with the robots.txt parser test.