TIL: Rate limiting by IP using Cloudflare's rate limiting rules

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

Developers running sites behind Cloudflare can block abusive crawlers today by copying Willison's exact WAF rate limiting rule configuration, since it is publicly documented.

Read this as

Simon Willison's blog was timing out because web crawlers were repeatedly hitting his search page despite the page telling crawlers, via robots.txt, to stay away. He fixed it using Cloudflare's firewall tool, which can limit how many requests one internet address may make. He allows five requests every ten seconds per address to the search section. The article shows the rule he used so others can copy it.

A website owner behind Cloudflare resolved outages caused by misbehaving crawlers without new infrastructure or cost, using Cloudflare WAF's built-in rate limiting: at most five requests per ten seconds per IP address to /search/*. The lesson for any business running sites behind Cloudflare is that abuse mitigation is available in an existing subscription rather than custom code. The article omits pricing tiers or whether these rules incur extra Cloudflare charges.

Willison diagnosed timeouts on his Datasette-based blog traced to crawlers ignoring robots.txt restrictions on /search/*. He configured Cloudflare's WAF rate limiting rules to cap requests from any single IP at five per ten seconds on the /search/* path. No rule configuration syntax, dashboard steps, or false-positive results are given. Sidebar items reference Ladybird's alpha due 23rd November 2026 and Pyodide-based Datasette in the browser.

Read the original

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

Key terms

Cloudflare robots.txt Datasette Pyodide Ladybird WorkOS

Was this summary useful?

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

Related reading