Crawlers and logs

What the firewall hides from your logs: the blind spot of edge blocking

Abstract illustration on a navy background: two blocks of white dots in a regular grid, separated by a wide vertical red-orange bar that runs from top to bottom, slightly left of center.

A site owner opens the logs, searches for GPTBot, ClaudeBot or PerplexityBot, finds nothing, and concludes that AI tools take no interest in the content. That conclusion is often wrong, for a mechanical reason: when a firewall or a CDN refuses a request, it stops at the edge of the network and never reaches the origin server. It therefore exists in no origin log. Silent logs do not mean the robots are absent. They can mean precisely the opposite.

How a request can disappear

On a site served behind a CDN such as Cloudflare, every request crosses several layers before it reaches the server. The application firewall, described in Cloudflare's WAF documentation, evaluates rules and can block a request or serve it a challenge. A bot management module, detailed in the Bots documentation, classifies automated traffic and applies a policy to it. Since July 2024, Cloudflare has offered one-click blocking of AI robots, as its post on blocking AI bots announced. Since July 1, 2025, it has asked every new domain, at sign-up, whether it allows AI robots, and starts from blocking by default: a site can therefore have refused these robots ever since its account was opened. Since July 1, 2026, the single switch has given way to a per-purpose setting (search, agent, training), with for each one the choice, among others, to block everywhere, to block only on pages that display ads, or to allow: the same robot can be served on one page and refused on another. This setting is now called AI Crawler and Agent access policies (Security menu, then Settings), and its default values for new domains are no longer those of 2025: only reading the domain's setting tells what is blocked.

Any request stopped at that level gets an answer manufactured by the CDN: most often a 403 or a challenge page (flagged at Cloudflare by the cf-mitigated header), sometimes a 429 for rate limiting, or a 402 Payment Required that Cloudflare's paid plans can return to blocked AI robots. The origin server sees none of it. Apache, nginx and application logs do not contain it, and a log analysis tool that reads only the origin cannot count it.

The three wrong conclusions this produces

  1. "No AI ever comes to us." The most common one. The site is in fact visited, but every visit is refused upstream. A rule switched on as a precaution, sometimes by a supplier, sometimes by a checkbox in an interface, sometimes by a CDN default setting, quietly cuts off any chance of being cited.
  2. "Our crawl success rate is 100%." A dashboard counting the 200 responses served by the origin shows a perfect score, since only accepted requests get there. The real rate, blocks included, can be very low.
  3. "The robot ignores our robots.txt." If robots.txt is served by the origin but the robot's first request is blocked at the edge, it never read the file. The robot gets blamed for behavior whose cause is local.
Abstract illustration on a navy background: nine parallel horizontal yellow lines come in from both edges of the image and stop short at the center against a teal square that interrupts them.

How to check what happens at the edge

The checks, from simplest to most complete:

  • Reread the CDN configuration. WAF rules, bot management mode, per-purpose AI robot settings, refused user-agent lists. Read it as it stands, not as it is supposed to be set: a rule inherited from an earlier configuration, or a default value accepted when the domain was opened, can cut off robots nobody thinks they are blocking.
  • Read what happens to the real robot. Sending a request yourself with an AI robot's user-agent says nothing about what happens to the real robot: Cloudflare, for example, recognizes verified bots by their published addresses, their reverse DNS or their cryptographic signature, and can refuse the imitation while letting the original through. A 403 obtained from your own machine only proves that impostors are refused. What happens to the genuine robot is read in the logs: the origin's shows what was served to it, the CDN's what was refused before reaching the server.
  • Read the CDN logs, not only the origin's. The large CDNs expose traffic statistics that include refused requests, by rule and by user-agent, sometimes by path. That is where the robots you thought absent show up. On Cloudflare, the AI Crawl Control screen (called AI Audit until August 2025), open to all plans, shows for each AI robot the allowed and blocked requests, the breakdown of response codes and the most requested paths, with a path filter. Security events (Analytics, Events tab) give the detail by rule and by user-agent, but the free plan only shows a sample. AI Crawl Control data is also available through the GraphQL Analytics API, with a token that has the Account Analytics read permission.
Abstract illustration on a yellow background: a grid of navy dots in six regular rows, on the left and on the right, bursts at the center into small scattered dots.

The IP address trap

A second CDN effect complicates reading the origin logs: the IP address the server sees is the CDN's, not the visitor's, unless the server is configured to read the header carrying the original address. When that setting is missing, every visitor, human and robot alike, appears to come from addresses that all belong to the ranges the CDN publishes (at Cloudflare, its IP address list). The authenticity checks described in the article on reverse DNS and published IP ranges become impossible, and a genuine robot can be taken for an impostor, or the other way round. At Cloudflare, the header to read is CF-Connecting-IP, which holds a single address, whereas the generic header, X-Forwarded-For, accumulates those of the intermediaries and can start with an address written by the client itself. CF-Connecting-IP is only reliable if the server accepts it solely from addresses published by Cloudflare (set_real_ip_from in nginx, RemoteIPTrustedProxy in Apache, detailed in Cloudflare's documentation): without that restriction, a client reaching the origin directly can write it itself and pass for a genuine robot. Ask your host for the exact name of the header it adds, and check that the address restored this way actually reaches the origin log.

Which policy to hold

The underlying question is editorial: a media property that wants to be cited by AI tools has no reason to block their search and reading robots at the edge. Blocking training is a legitimate decision. It belongs in robots.txt, user-agent by user-agent (see "robots.txt and AI"), or in the CDN's "training" setting when it distinguishes purposes, never in a setting that also refuses search robots and agents. At Cloudflare, blocking training also hits dual-use robots, which serve both training and search. Edge blocking only makes sense for proven abusive traffic: abnormal volumes, identity spoofing, scrapers that ignore robots.txt.

One precaution: do not block impostors with a broad user-agent rule either. A rule refusing any "GPTBot" coming from an address outside OpenAI's published ranges looks prudent. In practice it also refuses legitimate requests the day OpenAI adds a range your local list does not have yet. The right answer to spoofing is measurement and rate limiting, not blind refusal.

What measuring means once the block is lifted

When the edge lets traffic through, origin logs become a reliable source again, provided they carry the original address and keep the full user-agent. You can then count, by robot and by purpose (training, search, on-demand reading), what the AI tools actually read: which pages, how often, with which response code. That reading, rather than an origin dashboard, is what lets you state that content is reached by generative engines. The method is set out in "Reading an access log in 30 minutes".

The principle holds: an origin log proves only what reached the origin. Whatever was refused before leaves no trace there, and that is exactly what you have to go and find elsewhere before concluding anything about AI.

Abstract illustration on a navy background: two blocks of ten horizontal yellow lines, separated by a vertical gap at the center, the fourth and eighth lines of each in cream, their outer ends fading away.
  • : Proof of a block, Cloudflare AI robot settings and CF-Connecting-IP header clarified, unsourced case removed.
Yann Léguillon

Written by

Yann Léguillon

President of Mazette, the company behind Joornal. He works with companies that are building their own media: editorial structure, visibility in search engines and in AI answers, production at scale.