我使用 Zip Bombs 来保护我的服务器 --- I use Zip Bombs to Protect my Server

The majority of the traffic on the web is from bots. For the most part, these bots are used to discover new co

原文地址:https://idiallo.com/blog/zipbomb-protection?utm_source=www.programmerweekly.com&utm_medium=newsletter&utm_campaign=programmer-weekly-issue-253-may-8-2025

我先说结论:AI 写代码这件事,真正的分水岭不在模型本身,而在你有没有把流程设计清楚。

文章要点

  • The majority of the traffic on the web is from bots. For the most part, these bots are used to discover new co…
  • A zip bomb is a relatively small compressed file that can expand into a very large file that can overwhelm a m…
  • A feature that was developed early on the web was compression with gzip. The Internet being slow and informati…
  • This same compression can be used to serve CSS, Javascript, or even images. Gzip is fast, simple and drastical…

我的观点

把上下文边界、接口契约、回归检查前置,采纳率会比单纯调 prompt 更稳定。

团队层面最该沉淀的是失败样本和复盘模板,而不是个人技巧。

如果没有明确验收标准,AI 产出的“看起来能跑”会很快变成维护负担。

实践建议

  1. 先写验收条件(测试、输出格式、边界场景),再让模型生成实现。
  2. 每轮只优化一个维度(正确性/可读性/性能),避免目标漂移。
  3. 把评审驳回原因沉淀为 checklist,下一轮直接复用。

收尾

别追求“看完很多”,要追求“本周能改一件事”。把这篇文章转成一个具体动作,效果会比收藏链接更大。