Skip to content
Blogs

AI Crawler Control Is Now Web Infrastructure

· 25 min read

AI crawlers turned robots.txt into a production control plane for visibility, cost, licensing, and trust. Staff teams separate search indexing, model training, retrieval products, and abusive scrapers; publish intent in version-controlled signals; enforce expensive paths at the edge; and measure referral value against origin load before tightening rules.

Crawler policy became a product decision

AI crawlers changed a quiet infrastructure file into a board-level publishing question. Search indexing, model training, retrieval products, answer engines, archival bots, and abusive scrapers can all arrive with similar HTTP shapes but very different business consequences. Treating them as one category either leaks value or destroys legitimate discovery.

The production decision is not simply allow or block. A useful policy separates user-facing search, commercial AI training, citation-oriented retrieval, partner integrations, and hostile scraping. Each category needs an owner, evidence, enforcement, and a review cadence because the crawler landscape changes faster than most content governance processes.

Portfolio sites and product marketing domains face the same physics as large publishers, only with smaller margins. A spike in GPTBot or ClaudeBot traffic can raise Cloudflare Worker invocations, origin CPU, and log storage without sending a single qualified lead. Conversely, blocking every AI user-agent because headlines feel scary can remove your best pages from answer surfaces that engineers actually use.

Generative engine optimization is not a separate stack from technical SEO. It is the same canonical URLs, structured metadata, and crawlable markdown twins—plus explicit policy about which bots may bulk-fetch training corpora versus which may fetch pages users will click through. Teams that only optimize for Googlebot while ignoring AI crawlers discover their llms.txt promises and robots.txt disallows disagree in production logs.

Assign a single DRI for crawler policy who can approve rule changes, read monthly logs, and coordinate with legal on licensing language. Without ownership, marketing publishes llms-full.txt while engineering blocks the same paths at the edge, and Search Console shows coverage drops nobody can explain.

robots.txt is a signal, not the whole control plane

robots.txt remains the lowest-friction place to publish intent, and well-behaved crawlers still read it. It is not an authentication system, a contract registry, a rate limiter, or an abuse detector. If the site depends only on robots.txt, the policy is enforceable only against actors that voluntarily comply.

This is why edge controls matter on Cloudflare and similar platforms. Classify requests by user-agent and path, rate-limit expensive routes, block known unwanted crawler classes, and log behavior by bot identity, path, cache status, and response size. The policy should be visible in robots.txt, but the operational truth should live in infrastructure that can measure and enforce it.

Keep robots.txt simple, explicit, and reviewed in pull request like application code. Group allowed search and AI bots with Allow rules where you want discovery, Disallow sensitive paths such as /api/, admin surfaces, and per-locale markdown twins if you prefer HTML as the canonical training surface. Avoid deprecated Host directives; modern engines ignore them and they confuse diff reviews.

llms.txt is a machine-readable guide to what you want models to cite—not enforcement. Pair it with visible entity facts on /about and hire paths so answer engines quote accurate location and service scope. Never treat llms.txt as a substitute for blocking; malicious scrapers will not read it before hammering /blogs/rss.xml.

| Layer | Role | Failure mode if alone | | --- | --- | --- | | robots.txt | Publish intent | Malicious bots ignore | | llms.txt | GEO citation map | No rate or auth | | Edge rules | Enforce class + path | Drift from git | | App logs | Measure cost/value | No preventive block |

Track crawl cost, referral value, and citation value separately in analytics. A bot that consumes terabytes without impressions or referrals is a different decision than Bingbot indexing new posts after deploy.

Visibility and protection must be measured together

Blanket blocking feels safe, but it can suppress legitimate discovery if answer engines, search surfaces, or partner systems stop seeing the best version of the content. Blanket allowing feels growth-oriented, but it can subsidize products that extract value without sending users back. The staff-level move is to make the tradeoff observable.

Measure crawler traffic against outcomes: indexed pages, impressions, referral sessions, server cost, cache hit ratio, conversion paths, and unauthorized replication off-domain. If a bot consumes meaningful infrastructure and produces no visible upside, tighten it. If a crawler drives qualified discovery with proper attribution, give it a stable path and a crawl budget.

Search Console and server logs will disagree; that gap is diagnostic. When GSC shows impressions for URLs your origin rarely serves, a CDN or AI cache may be quoting stale snippets. When logs show heavy fetch but GSC is flat, you may be training someone else's model, not earning search visibility.

Use IndexNow after deploy so Bing, Yandex, and partner engines see URL changes quickly—but IndexNow does not replace crawler policy. It accelerates legitimate indexing; it does not stop bulk download of your archive. Cap IndexNow batches and dedupe URLs so you stay within free API limits.

For static sites on Workers Static Assets, most HTML requests should not invoke the Worker at all. Paths in run_worker_first always hit CPU limits on the free tier. Crawler storms against /api/contact or dynamic routes are where rate limits pay off first; static blog HTML should remain cheap at scale.

Review AI referrer headers in GA4 after consent where applicable. A rise in chat.openai.com or perplexity.ai referrals with falling organic landing rates may mean answer engines summarize you without clicks—policy and snippet strategy may need adjustment, not more disallow rules.

Build the policy like production infrastructure

A durable setup starts with an inventory. List every crawler class the site sees in the last thirty days, the content it touches, the user value it creates, and the cost or risk it introduces. Then encode policy in version-controlled rules, attach tests to critical paths, and include crawler behavior in release reviews for new content sections.

The same principle applies to smaller portfolio and product sites. Publish clean canonical pages, structured metadata, sitemap entries, and RSS for legitimate discovery. Protect expensive or low-value paths with clear disallow rules, caching, and rate limits. The goal is not to hide from AI systems; it is to decide which access creates durable value.

Generate robots.txt from a typed source in git so preview builds can emit Disallow: / while production lists Sitemap and bot groups consistently. E2E tests should fetch robots.txt with Googlebot and GPTBot user-agents and assert 200 without challenge pages—Cloudflare must not block verified crawlers on HTML you intend to index.

When you add locale-specific blog posts, hreflang and sitemap entries should list only locales that passed editorial gates. Feeding crawlers seven broken alternates teaches engines your international program is low trust. Atomic seven-locale publish reduces accidental English-only discovery under Turkish URLs.

Version-control sitemap generation, RSS, llms.txt, and redirect tables together. A deploy that adds posts but forgets sitemap lastmod delays indexing; a deploy that adds 410 gone URLs without sitemap removal leaves ghosts in Search Console until the next crawl.

Attach crawler policy checks to CI: assert critical URLs return 200 for allowed bots, assert /api/ disallows in robots, assert noindex routes carry X-Robots-Tag in generated _headers. Infrastructure teams already test TLS and CSP; crawler access belongs in the same suite after you move to edge-hosted static export.

Classify bots before you block them

User-agent strings lie, rotate, and collide. Classification should combine declared agent, IP reputation, request pattern, and path sensitivity—not a single substring match. Maintain a table of known search bots, AI training crawlers, AI retrieval crawlers, monitoring tools, and SEO audit bots your team uses intentionally.

Search bots you typically allow for marketing sites include Googlebot, Bingbot, Applebot, Yandex, and DuckDuckBot via Bing. AI bots commonly debated include GPTBot, ClaudeBot, PerplexityBot, Google-Extended, and Meta-ExternalAgent. Bytespider and aggressive commercial scrapers may need stricter limits even when robots.txt disallows them.

Separate training from retrieval where vendor docs allow. Google-Extended controls training use distinct from Googlebot indexing in some configurations; policies change—re-read vendor pages quarterly and cite them in commit messages when you change rules.

Do not block Googlebot while trying to stop AI training; indexing loss hurts revenue faster than model training risk for most freelance engineering sites. Prefer path-level disallows for bulk markdown twins or API routes instead of site-wide 403 that catches good bots during misconfiguration.

Log sampling keeps free-tier log costs manageable: aggregate counts by bot class hourly, alert on spikes relative to seven-day baseline, and retain raw samples for incidents. Treat unexplained crawl spikes like reliability events with a runbook, not as marketing trivia.

Partner integrations—embeddings vendors, search appliances, internal RAG indexes—should use authenticated fetch or signed tokens rather than public crawl. Public crawl should remain for pages you want the open web to discover.

llms.txt, markdown twins, and GEO signals

Generative engines quote pages that state conclusions early with verifiable citations. Your public llms.txt should list hire paths, service packages, case studies, and indexable posts with stable URLs—not a dump of every experimental route. llms-full.txt can carry entity facts and FAQ summaries for owners who want richer machine-readable bios without exposing draft content.

Markdown twins at /blogs/slug/md help engineers paste accurate context into tools while HTML remains the canonical indexed surface. Mark twins noindex via headers so they stay crawlable for intentional fetches without competing in search results. Policy teams sometimes disallow /md in robots for training crawlers while keeping HTML allowed; document that split in the PR that introduces twins.

Entity consistency matters for AEO: Istanbul-based remote engagement, niche services, and sameAs profiles should match JSON-LD, footer links, and llms-full.txt. Contradictory geography lines get quoted by models and erode trust in contact funnels.

Internal links from posts to /hire and /services should use localized paths in every locale file. Crawlers that respect language prefixes should never land on English money pages from Turkish articles because hreflang said the cluster exists.

When you refresh long-form posts, update dateModified in JSON-LD and sitemap lastmod together. AI summaries that show stale dates signal neglect even when the technical content still ranks.

Edge enforcement on Cloudflare Workers

Static export plus a small site Worker is the default hosting shape: HTML and assets serve from Static Assets for free unlimited requests; only /api/* and explicit gone paths invoke Worker CPU. Crawler policy at the edge should avoid running Worker logic on every blog page view—use Redirect Rules, WAF custom rules, or bot management features within free-tier limits where available.

Document dashboard settings so verified bots are not challenged on HTML, sitemap.xml, robots.txt, IndexNow key files, and llms.txt. Security Events review belongs in the monthly crawler loop: if Googlebot receives cf-mitigated, fix firewall rules before debugging SEO regressions.

Rate limit aggressive AI crawlers on expensive paths first—search endpoints, uncached API routes, large JSON feeds—before throttling HTML that costs nothing on Static Assets. Misapplied rate limits on apex HTML hurt discovery; misapplied absence of limits on /api/contact burns daily Worker quotas.

410 gone lists for retired hosts and consolidated slugs should return X-Robots-Tag: noindex at the Worker so engines drop URLs faster than waiting for natural recrawl alone. Pair 410 responses with IndexNow submissions on deploy workflows.

Preview deployments must emit Disallow: / in robots and noindex headers so PR version URLs never pollute indices. Production canonicals should still point to berktugberke.com even on preview hosts so accidental links do not split signals.

Keep Turnstile and contact ingest off the crawl path robots advertise. Crawlers that POST to /api/contact should fail fast with 405 or 429; humans with valid tokens pass through unchanged.

The practical operating model

Run crawler governance as a monthly operating loop. Review logs, update bot categories, compare Search Console coverage with server-side crawl activity, check whether new AI referrers or answer surfaces cite the site, and adjust rules with a rollback path stored in git revert commits.

For teams publishing technical content, the winning posture is disciplined openness. Make high-quality public work easy to discover, cite, and share. Make extraction without attribution expensive through rate limits and clear licensing on /legal pages. That combination preserves SEO upside while preventing the website from becoming unpaid infrastructure for every crawler on the internet.

Version-control robots.txt, llms.txt, sitemap, and feed generation together. Separate search, AI training, retrieval, monitoring, and abusive traffic in documentation even when robots.txt groups simplify for size limits. Use cache and rate limits before expensive origin work.

Review crawler policy whenever content strategy, monetization, or hosting cutover changes. A move from Vercel to Cloudflare Workers changes which headers and bot features apply to HTML—retest crawler access after DNS cutover using the same user-agent matrix you run in CI.

Escalate licensing questions to legal when partners ask for bulk corpus access. robots.txt is not a contract; it is a signal. Commercial reuse may require explicit agreements regardless of Allow rules.

Publish a short internal memo after each policy change: what changed, which bots affected, expected metric impact, and rollback SHA. Future you will need it when referrals dip two weeks later and nobody remembers why ClaudeBot was tightened.

Operational checklist for AI crawler control

Before tightening blocks: export thirty-day bot traffic by class, note GSC impressions and referrals, confirm Static Assets paths are not accidentally on run_worker_first, and verify sitemap still lists URLs you want indexed.

Before allowing new AI bots: read vendor documentation, add Allow with path scope if appropriate, add log dashboard panel, set spike alert threshold, schedule thirty-day review.

After deploy: run IndexNow for changed URLs, smoke-test robots.txt and llms.txt with crawler user-agents, confirm no cf-mitigated on apex home and one post per locale.

Quarterly: reconcile bot list with Cloudflare AI crawler docs and search engine webmaster guidance; remove deprecated user-agents; update Clean-param lists for Yandex if UTM patterns changed.

When migrating hosts: rerun e2e crawler-access specs against production, resubmit sitemaps in GSC/Bing/Yandex, and watch crawl stats for two weeks before declaring victory.

Link crawler policy work to performance budget posts when crawl spikes correlate with LCP regressions—heavy bot fetch during deploy windows can look like user CWV problems in synthetic tests if you confuse bot and human RUM samples.

Frequently asked questions

Should we block all AI crawlers by default?
Default deny for training crawlers can be reasonable when legal risk is unclear, but blind site-wide blocks often harm discovery and answer-engine citations you want. Prefer classification, path-scoped rules, and measured review over permanent 403 for every GPTBot request without log evidence. Review monthly with referral and GSC data before tightening further.
Is robots.txt enough for compliance?
No. robots.txt expresses intent to cooperating bots; it is not a license, contract, or technical access control. Pair published signals with edge enforcement, logging, and legal terms on content reuse for commercial training. Document who owns policy changes and keep robots.txt in git with the same review bar as application code.
How do llms.txt and robots.txt differ?
robots.txt is the standard crawl exclusion protocol crawlers may honor. llms.txt is a curated map of URLs and notes for LLM products; it guides citation-friendly discovery but does not stop abusive fetch. Use both, with enforcement elsewhere. Align llms.txt with visible entity facts so models quote accurate hire and location information.
Does IndexNow replace crawler management?
IndexNow accelerates URL submission to participating engines after deploy. It does not classify bots, rate-limit abuse, or protect /api routes. Keep IndexNow in deploy.yml and manage bots via robots, edge rules, and logs. Dedupe URLs and cap batch size so free-tier automation stays predictable after every production merge.

Sources

Related service

Ship AI features to production: tooling, retrieval, evaluation, safety boundaries, and operable backends.

View hire details


Published on August 30, 2026 by Berktug Berke Ates.