AI Labyrinth is an opt-in Cloudflare feature that, instead of blocking a suspected AI scraper, quietly serves it hidden links to a maze of AI-generated decoy pages. The crawler wastes time and compute on irrelevant content, and any visitor that goes deep into the maze is flagged as a bot.
Cloudflare announced AI Labyrinth in March 2025 and describes it as available on an opt-in basis to all customers, including the Free plan. When Cloudflare detects what it considers inappropriate bot activity, it injects invisible links with nofollow attributes into the HTML it returns to that visitor. The links lead to pages generated in advance with Workers AI, sanitized against XSS, stored in R2, and marked with meta directives so search engines don't index them. Cloudflare says the links are shown only to suspected AI scrapers, while ordinary visitors and verified crawlers browse as normal.
The decoy pages are deliberately plausible but irrelevant, so a crawler that follows them ingests content that has nothing to do with the site. Cloudflare's own description of the second benefit is that no real person would go four links deep into a maze of AI-generated nonsense, so a visitor that does is very likely a bot, and that evidence feeds Cloudflare's bot fingerprinting and its list of known bad actors.
Cloudflare's documentation is explicit that AI Labyrinth actions are not mitigations: nothing is blocked or challenged. Security Analytics logs two events under the AI Labyrinth service, "served" when honeypot links were injected into a response and "crawls" when a crawler followed one into the maze. A high ratio of crawls to served means non-compliant crawlers are following the links. Bots that respect no-crawl instructions, such as nofollow and robots.txt rules, ignore the honeypot.
Cloudflare also concedes the weakness of the underlying trick: bots have evolved to look for hidden-link honeypots, which is why the labyrinth is meant to grow into whole networks of realistic linked URLs rather than a single hidden link. For a scraper the practical lesson is about hygiene. Follow only links a visitor can see, honor rel=nofollow, cap crawl depth, and treat a run of generic, unrelated pages with none of the data you expected as a sign you were routed into a decoy path.
from bs4 import BeautifulSoup
MAX_DEPTH = 3
def followable_links(html: str) -> list[str]:
soup = BeautifulSoup(html, "html.parser")
urls = []
for a in soup.find_all("a", href=True):
rel = " ".join(a.get("rel", [])).lower()
style = (a.get("style") or "").replace(" ", "").lower()
if "nofollow" in rel:
continue # honors the site's no-follow instruction
if a.get("aria-hidden") == "true" or "display:none" in style:
continue # a human visitor could not click this
urls.append(a["href"])
return urls
def crawl(url: str, depth: int = 0):
if depth > MAX_DEPTH:
return
# fetch(url) -> html, then recurse into followable_links(html)How Crawlora handles this
Crawlora's structured endpoints request the specific pages or APIs that hold the data you asked for rather than wandering a site's link graph, so a hidden decoy link is not part of the path a request follows.
Glossary
FAQ
No. Cloudflare's docs state that AI Labyrinth actions are not mitigations and that the request is neither blocked nor challenged. It misleads suspected AI scrapers and records which ones follow the decoy links.
Cloudflare says it shouldn't: the links are shown only to suspected AI scrapers, and each generated page carries meta directives that prevent search engines from indexing it.
A classic honeypot is a hidden link or form field that flags whoever touches it. AI Labyrinth adds a destination: a maze of generated pages that wastes the crawler's resources and lets Cloudflare see how deep it goes.
Beyond AI Labyrinth (Cloudflare), Crawlora's own docs cover the rest of the stack — browse the APIs, test a request in Playground, and move from scraping infrastructure work to production data workflows.