Cloudflare CAPTCHA on at least one ampersand

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Site operators can now gate Cloudflare CAPTCHAs only on complex URLs, stopping simple searches from triggering challenges.

Read this as

Simon Willison runs a website with a faceted search engine, a system that lets visitors filter results across many categories. Cloudflare's anti-bot test (a CAPTCHA, which Cloudflare calls a 'Managed Challenge') was blocking crawlers but also annoying real people. He configured it so the test only appears on search URLs containing an ampersand, so a plain query like /search/?q=lemur works without a CAPTCHA.

Willison, owner of simonwillison.net, was using a Cloudflare 'Managed Challenge' to stop crawlers hammering every combination of his faceted search UI, but simple one-term searches were triggering the challenge too. A new custom rule, challenge only URLs whose query string contains '&', restores frictionless access for legitimate users while keeping bot protection on combinatorial URLs. Sites with faceted or parametric search can copy this pattern.

Cloudflare WAF custom rules now support a 'Managed Challenge' scoped by expression. Willison's rule: (http.request.uri.path wildcard r"/search/*" and http.request.uri.query contains "&"), challenges only faceted search requests (multiple parameters) while letting single-parameter queries like /search/?q=lemur through. He reports Claude Code could not edit the rules via the Cloudflare MCP and fell back to the Cloudflare API directly.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Cloudflare simonwillison.net Claude Code Cloudflare MCP Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.