← 返回列表

datasette-ip-rate-limit 0.1a0

Simon Willison 3 信息等级 3 1 噪音/剔除;2 较弱;3 普通事实;4 重要行业动态;5 极重大事件。该分数是信息显著性,不是投资建议。 发布:2026-05-14T04:10 抓取:2026-05-14 22:13
🔗 原文链接
摘要

开源项目datasette-ip-rate-limit发布0.1a0版本,用于限制IP请求速率,解决网站被爬虫滥用问题。作者使用Codex构建,并提供了生产配置示例。

客观事实
  • datasette-ip-rate-limit 0.1a0版本发布
  • 插件功能:限制IP请求速率,配置了生产规则
  • 基于AI Codex构建
datasette Codex Fly-Client-IP

原文

Release: datasette-ip-rate-limit 0.1a0

    The datasette.io site was being hammered by poorly-behaved crawlers, so I had Codex (GPT-5.5 xhigh) build a configurable rate limiting plugin to block IPs that were hammering specific areas of the site too quickly.

Here's the production configuration I'm using on that site for the new plugin:

datasette-ip-rate-limit:
header: Fly-Client-IP
max_keys: 10000
exempt_paths:
- "/static/"
- "/-/turnstile
"
rules:
- name: demo-databases
paths:
- "/global-power-plants/"
- "/legislators/
"
window_seconds: 60
max_requests: 60
block_seconds: 20

    Tags: datasette, rate-limiting, codex