AI Crawler Access: Fix robots.txt, Firewalls, and Bot Rules So ChatGPT, Perplexity, and Google Can Read Your Site
Before any AEO or GEO content work, confirm AI search bots can actually fetch your pages. A practical audit of robots.txt, CDN and firewall rules, server blocks, and content access.

The Gap Between Blocking and Being Blocked
Here is a failure pattern we check for first on any AEO or GEO engagement: a site with well-structured content, clean markup, and clear entity signals that never shows up in AI answers, because the crawler could not fetch the pages in the first place. A CDN rule or bot-protection toggle can drop requests at the edge, before the web server logs anything. No robots.txt directive fixes a request that never arrives.
Before investing time in content optimization, structured markup, or entity modeling, verify that AI search systems can actually fetch your pages. This is infrastructure work, not content work. A single firewall rule or Bot Fight Mode toggle can override every robots.txt directive you carefully write. We treat crawler access as the foundation layer: until proven open, assume nothing else matters.
This audit covers the full path from edge to origin server. We separate deliberate policy decisions—allowing search bots versus training bots—from accidental blocks. The goal is a documented access policy, implemented consistently across robots.txt, CDN rules, and WAF configurations, with periodic verification that the policy remains in force.

Search Bots and Training Bots Are Independent Decisions
AI systems deploy multiple user agents with distinct purposes. The clearest example is OpenAI: OAI-SearchBot retrieves content to surface in ChatGPT search features, while GPTBot crawls content that may be used to train generative AI foundation models. According to OpenAI's crawler documentation, these are independent controls. You can allow OAI-SearchBot and disallow GPTBot. Sites that block OAI-SearchBot will not appear in ChatGPT search answers, though they may still show as navigational links. Blocking GPTBot signals that your content should not be used for training, but does not affect search visibility.
Perplexity follows a similar pattern. PerplexityBot surfaces and links sites in Perplexity search results and is not used to crawl content for AI foundation model training. The company recommends allowing it in robots.txt and permitting its published IP ranges. User-initiated actions use a separate agent (Perplexity-User), which generally ignores robots.txt because a human user requested the fetch.
Google requires no additional steps to appear in AI Overviews or AI Mode beyond the existing requirements for Search. Google's guidance on AI features and your website states that your page must be indexed and eligible to be shown in Search with a snippet. Crawling must be allowed in robots.txt and by any CDN or hosting infrastructure, and important content must be available in text. Google-Extended relates to limiting AI training and grounding in some other Google systems, but Googlebot robots.txt rules remain the primary control for Search appearance.
The decision tree is straightforward for most service businesses: allow search bots (OAI-SearchBot, PerplexityBot, Googlebot) and decide independently whether to allow training bots (GPTBot, Google-Extended) based on business policy. Some organizations consider their published content a marketing asset and welcome training use. Others prefer to restrict training while remaining visible in search results. Both are legitimate positions. What matters is making the decision explicitly rather than inheriting an accidental default.
The Four-Layer Audit Workflow
Crawler access breaks down into four distinct layers, each of which can silently block requests. We audit them in order from outside to inside: edge security, robots.txt, server configuration, and content accessibility. Each layer has different tooling and different stakeholders.
Layer 1: Edge Security and CDN Rules
Start at the perimeter. If your site sits behind Cloudflare, Akamai, AWS CloudFront, or any other CDN with bot management features, those rules execute before your robots.txt file is ever consulted. Bot Fight Mode, rate limiters, challenge pages, and WAF rulesets can all drop or challenge AI crawler requests.
Cloudflare's Bot Fight Mode is a common culprit. When enabled, it cannot be bypassed by WAF custom rules—even if you explicitly allow the user agent and IP range in a custom rule, Bot Fight Mode may still challenge the request. Perplexity's documentation notes this limitation, so if you rely on Bot Fight Mode, test whether it is still challenging the bots you want to allow. Check your CDN dashboard for security modes that apply blanket bot blocking.
If you use a WAF, explicitly allow AI search bots by matching both user agent string and IP range. Matching the user agent alone is insufficient because any script can claim to be a legitimate bot. OpenAI publishes IP ranges as JSON files (for example, openai.com/searchbot.json). Perplexity and Google publish similar lists. Download these ranges and add them to your WAF allowlist alongside the corresponding user agent patterns.
Server and CDN logs provide ground truth. Pull a week of access logs and filter for the user agents you care about: OAI-SearchBot, PerplexityBot, Googlebot. If you see no requests, either the bots aren't trying to crawl you (unlikely if you have public content) or something is dropping their requests before they reach your origin. If you see requests but they all return 403, 429, or challenge pages, your edge security layer is the problem.
Layer 2: Robots.txt Directives
Fetch your robots.txt file and read it line by line. Check for explicit Disallow rules that mention AI user agents. Check for wildcard rules that inadvertently block them. A common mistake is a legacy Disallow that targets all bots except those explicitly named in an Allow directive, then failing to add new AI bots as they launch.
Test your robots.txt against the user agents you want to allow. Use a robots.txt tester or manually parse the rules. Verify that OAI-SearchBot, PerplexityBot, and Googlebot are not disallowed from crawling the pages you want visible in AI search results.
Remember that robots.txt is a request, not enforcement. A well-behaved bot will respect Disallow directives, but robots.txt cannot physically prevent access. If you need enforcement, use authentication, IP allowlists, or serve different content based on the user agent. For public marketing content, robots.txt is usually sufficient because major AI systems respect it.
Layer 3: Server-Side Blocks and Rate Limits
Even if requests pass the CDN and satisfy robots.txt, your origin server might block them. Check web server configuration files (nginx.conf, .htaccess, Apache config) for user agent filtering. Look for rate-limiting rules that apply globally or by IP subnet. If your hosting provider offers server-level bot management, verify its settings.
Some hosting platforms enable aggressive bot blocking by default. Shared hosting environments often throttle or block requests that exhibit crawler-like behavior—high request rates, sequential page access, User-Agent strings containing "bot". Check with your hosting provider if logs show requests reaching the CDN but not the application.
Use curl to simulate crawler requests. Construct a request with the user agent string of the bot you're testing:
curl -A "OAI-SearchBot/1.0 (+https://openai.com/bot)" https://yourdomain.com/page-you-want-crawledExamine the response. A 200 status code and the full page HTML means the path is open. A 403 or 503 suggests server-side blocking. A redirect to a challenge page indicates edge or CDN interference. Run this test from an external network, not from your internal network or VPN, because internal requests often bypass security rules that affect public crawlers.
Layer 4: Content Accessibility
Even if the bot successfully fetches the page, the content may not be usable. Important information locked in JavaScript-rendered components, embedded in images without alt text, or hidden behind click interactions will not appear in search results or answer citations.
Crawl your site with JavaScript disabled or use a text-only browser to see what a basic crawler sees. The core message, key facts, and entity relationships should be present in the initial HTML response. Structured data should match visible text on the page. Google's guidance is explicit: you do not need new machine-readable files, AI text files, or special schema markup to appear in AI features. The existing HTML and structured data you already implement for traditional Search is sufficient.
Check that pages you want surfaced are actually indexed. Use site: searches in Google, check Google Search Console, and verify that noindex tags or X-Robots-Tag headers are not present where you don't intend them. For Google AI Overviews, the page must be eligible to be shown in Search with a snippet. If you use nosnippet, data-nosnippet, max-snippet:0, or noindex directives, those pages will not appear in AI-generated summaries.
A Practical Decision Framework for Service Businesses
Small and mid-sized service businesses face a simpler decision than media companies or content platforms. Your published content is marketing material: service descriptions, case studies, blog posts, FAQ pages. This content is meant to be discovered, quoted, and cited. The default stance should be to allow search bots.
Here is the framework we use:
Allow all major search bots: Googlebot, OAI-SearchBot, PerplexityBot. These surface your content in search results and answer engines. Blocking them removes your site from visibility in those channels.
Decide on training bots based on policy: GPTBot, Google-Extended, and similar user agents that crawl for model training. If you view published content as an extension of your marketing and want maximum reach, allow them. If you have concerns about training use or prefer to restrict repurposing, block them. Either choice is defensible.
Always allow user-initiated bots: ChatGPT-User, Perplexity-User, and similar user agents that act on behalf of a human user. These generally ignore robots.txt because they represent direct user intent. Blocking them is usually futile.
Monitor and adjust: Log crawler activity monthly. If a new AI search system launches and you want visibility there, add its bot to your allowlist. If you see abusive crawling behavior, tighten rate limits or add IP-based filtering, but separate abuse mitigation from legitimate search access.

Sample Robots.txt Configuration
A baseline robots.txt for a service business that wants broad AI search visibility while restricting training use might look like this:
# Major search engines and AI search
User-agent: Googlebot
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
# Training bots (policy decision to disallow)
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
# User-initiated actions (permissive)
User-agent: ChatGPT-User
Allow: /
User-agent: Perplexity-User
Allow: /
# Default for unlisted bots
User-agent: *
Disallow: /admin/
Disallow: /private/
Sitemap: https://yourdomain.com/sitemap.xml
Adjust based on your policy. If you want to allow training, remove the GPTBot and Google-Extended Disallow blocks. If you have pages that should never appear anywhere, add specific Disallow rules above the user-agent blocks or use noindex tags on those pages directly.
Keep the file simple. Comment each section so that future administrators understand the intent. Update it when new AI systems launch and you want to include or exclude them.
Change Control and Testing Checklist
Robots.txt and CDN configuration changes require careful change control. A typo can silently block all crawlers. A misconfigured WAF rule can lock out search engines for days before anyone notices. Use this checklist:
Document who owns robots.txt: Identify the team or individual responsible for the file. Is it the web developer, marketing, IT, or DevOps? Centralize responsibility so changes are coordinated.
Log every change: Use version control for robots.txt if the file lives in a repository. If it's managed through a CMS or hosting dashboard, keep a changelog document. Record the date, the change made, and the reason.
Test before deploying: Use a robots.txt syntax validator. Simulate requests with curl for each user agent you care about. If possible, test in a staging environment first.
Retest 24 hours after deployment: OpenAI and Perplexity both note that changes can take up to 24 hours to propagate through their crawl systems. After deploying a change, wait a day, then check server logs to confirm the expected bots are now crawling (or stopped crawling) as intended.
Monitor monthly: Set a recurring calendar reminder to review server logs and CDN analytics. Look for new AI user agents in the logs. Check that allowed bots are still crawling successfully. Watch for spikes in 403 or 429 responses that might indicate a configuration drift.
Coordinate with CDN and hosting changes: When you update CDN rules, adjust firewall policies, or migrate hosting providers, revisit the robots.txt audit. Configuration that worked perfectly can break when infrastructure changes.
Common Mistakes
We see the same errors repeatedly across client audits:
Blanket "Disallow: /" for all bots except Googlebot: Legacy configuration intended to reduce server load, now blocking every AI search system that launched in the past two years.
Bot Fight Mode left on after initial launch: Enabled during site setup or a DDoS incident, then never revisited. Silently challenges all bots, including legitimate search crawlers.
User-agent matching without IP verification: Allowing any request that claims to be OAI-SearchBot, without verifying the source IP against OpenAI's published ranges. Opens the door to scrapers spoofing user agent strings.
Conflicting robots.txt and meta robots tags: Robots.txt allows crawling, but individual pages have noindex in meta tags or X-Robots-Tag headers. The page is fetchable but not indexable, so it never appears in search results.
Critical content only in JavaScript: The HTML delivered to crawlers is a bare skeleton; all text is injected client-side. The bot sees an empty page.
Ignoring ChatGPT-User and similar user-initiated agents: Attempting to block user-initiated agents in robots.txt, which is ineffective because they generally ignore robots.txt by design. Focus blocking efforts on the search bots (OAI-SearchBot) if you want to control search visibility.
Assuming indexing equals AI visibility: Googlebot can crawl and index the page, but nosnippet or max-snippet:0 prevents any text from being shown in summaries or AI Overviews. The page is technically indexed but invisible in AI features.
What We Implement for Clients
When we set up crawler access as part of an AI visibility engagement, we follow a standard process:
We start with a full infrastructure audit. We document the CDN, WAF, and hosting configuration. We pull and analyze server logs for the past 30 days, filtering for AI bot user agents. We identify every layer where requests could be blocked: edge security, WAF rules, server configuration, application-level logic, and content delivery.
Next, we map the client's policy preferences. We discuss whether they want to allow or block training bots, separate from search bots. We document the decision in a policy file that travels with the technical configuration, so future team members understand the intent.
We write a clean robots.txt file based on that policy, with comments explaining each section. We validate syntax and test it against target user agents. We coordinate with the client's hosting or DevOps team to deploy the file and verify it's served correctly at /robots.txt.
We configure CDN and WAF rules to explicitly allow search bots by both user agent and IP range. If the client uses Cloudflare, we verify Bot Fight Mode is disabled or replaced with more granular rules. If the client uses another CDN, we work within that platform's bot management tools to create allowlist rules that cannot be overridden by global security settings.
We instrument logging and monitoring. We set up filtered log views or alerts that notify us if allowed bots start receiving errors. We add monthly checks to a maintenance calendar.
After deployment, we retest the full path with curl and by monitoring live logs. We confirm that allowed bots successfully fetch key pages and return 200 status codes. We check that blocked bots (if any) receive appropriate responses and do not appear in logs. We document the configuration in a runbook so the client's team can replicate or troubleshoot in the future.
Finally, we tie crawler access to visibility measurement. Once we confirm bots can access the content, we move to AI visibility tracking to measure whether the site is actually being cited in answers. Fixing access is necessary but not sufficient; it unblocks the path, but content quality and relevance determine whether the site gets surfaced.
Closing Checklist
Use this checklist to verify crawler access is correctly configured:
Robots.txt is accessible at https://yourdomain.com/robots.txt and returns a 200 status code.
Robots.txt explicitly allows Googlebot, OAI-SearchBot, and PerplexityBot (or documents a deliberate decision to block one).
Training bots (GPTBot, Google-Extended) are allowed or blocked based on documented policy, not accidental omission.
User-initiated agents (ChatGPT-User, Perplexity-User) are not blocked in robots.txt.
CDN Bot Fight Mode or equivalent global bot blocking is disabled, or explicit allowlist rules are in place for AI search bots.
WAF rules allow AI search bots by matching both user agent and published IP ranges.
Server configuration (nginx, Apache, .htaccess) does not block AI bot user agents.
Rate limiting rules do not inadvertently throttle or block AI crawlers.
Server logs from the past week show successful requests (200 status) from allowed bots.
Key pages contain important content in HTML text, not locked in JavaScript or images.
Pages you want surfaced are indexed and eligible for snippets (no noindex, nosnippet, or max-snippet:0 unless intentional).
Structured data matches visible text and uses standard schema.org vocabularies.
A change log documents who made the configuration, when, and why.
A monthly review is scheduled to check that allowed bots continue to crawl successfully.
A contact or process is in place to update configuration when new AI search systems launch.
Frequently Asked Questions
Do I need a separate AI-specific text file or schema markup to appear in AI search results?
No. Google explicitly states that you do not need new machine-readable files, AI text files, or special schema to appear in AI Overviews or AI Mode. The existing HTML and structured data you use for traditional Search is sufficient.
If I block GPTBot, will my site still appear in ChatGPT search results?
Yes. GPTBot crawls content that may be used to train AI models. OAI-SearchBot is the user agent used for surfacing sites in ChatGPT search features. These are independent controls. You can allow OAI-SearchBot (to appear in search) and block GPTBot (to opt out of training use) in the same robots.txt file.
How long does it take for robots.txt changes to take effect?
OpenAI and Perplexity both indicate up to 24 hours for their systems to adjust after a robots.txt update. Google does not publish the same figure on its AI features page, so check logs rather than assuming. After deploying a change, wait 24 hours, then check server logs to confirm the expected behavior.
Can I verify that a crawler request is legitimate and not someone spoofing the user agent?
Yes. Match both the user agent string and the source IP address against the bot's published IP ranges. OpenAI, Perplexity, and Google all publish lists of their crawler IP addresses. Configure your WAF or server to allow requests only when both the user agent and IP match the official list. User agent alone is insufficient because anyone can claim to be a legitimate bot in an HTTP header.
by Darius Gaynor


