Bad bots

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

Why it matters

Website operators can block abusive crawler traffic by disabling Datasette's default facet queries, avoiding the cost of scaling infrastructure to absorb bad bots.

Read this as

Simon Willison's two public Datasette websites, which host his TILs and blog backup, were overloaded by badly behaved web crawler bots. The main culprit was a Datasette feature called facets, which creates many variations of the same page that crawlers keep re-visiting. He turned facets off using a setting called allow_facet, and blocked bots now receive a '400 Bad Request' error instead of a page.

Willison's Datasette instances on Fly were hammered by bot traffic, and scaling up would mean paying extra just to serve crawlers. Instead, he disabled facets, a default Datasette feature whose page combinations trap inefficient crawlers in loops, via the allow_facet off setting. Operators running similar public data services can cut bot load at the configuration level rather than paying for more infrastructure.

Willison diagnosed misbehaving crawler traffic against two public Datasette instances on Fly by inspecting logs, finding facet query combinations (e.g. _facet_date, _facet_size=max, multiple _facet parameters) generating near-duplicate requests. He disabled facets with --setting allow_facet off, so crawlers now receive 400 Bad Request responses, as shown in logged URLs like /simonwillisonblog/blog_entry?_facet=series_id. The post omits traffic volumes and whether other mitigation measures are planned.

Read the original

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

Key terms

Datasette Fly Simon Willison WorkOS Pyodide

Was this summary useful?

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

Related reading