Cloudflare

Trapping misbehaving bots in an AI Labyrinth

Mar 19, 2025Reid Tatoris, Harsh Saxena, Luis Miglietti
Trapping misbehaving bots in an AI Labyrinth
SummaryAI, from the source post

Introduced AI Labyrinth, a new bot mitigation technique that uses AI-generated content to trap and confuse AI crawlers. This involves pre-generating HTML pages with AI (Workers AI, open-source model), sanitizing them for XSS, and storing them in R2. These pages are then integrated as hidden links on existing pages via HTML transformation. The system identifies suspected AI scrapers by observing which bots follow these hidden links, feeding this data into machine learning models for improved bot identification. This feature is available as a simple toggle in the Cloudflare dashboard.

More from the Website Security & Threat Management trail