Developer builds tool to detect live robots.txt changes injected by CDNs like Cloudflare
A developer discovered that the robots.txt file stored in a site's repository may differ from what crawlers actually receive, particularly when CDNs like Cloudflare inject their own rules at the edge. Cloudflare's AI Crawl Control feature can rewrite robots.txt in transit without modifying the origin file, meaning site owners may be unaware of what Googlebot or AI crawlers like GPTBot are actually seeing. Finding no existing tool that checks the live, served version of robots.txt — only generators for building static files — the developer built an open-source utility called robots-check. The tool can be run via npx with zero dependencies and detects whether the live file contains CDN-injected rules. It also includes a CI flag to fail builds if a site is accidentally fully disallowed, and a GitHub Action for automated workflow integration.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in