关于「防滥用次数锁与换绑验证:拦住脚本,不拦真人」,《零客服界面与自助修正状态机》给出的定量结论是什么?
结论:第四章比较三种次数锁,合并二十分钟内重复请求后真人误伤几乎归零;换绑先用收据凭证验证持有人,每年劫持约 0.0182 次。
数据口径:在合成的一个月里,可自助类别合计只占 0.869,退款、付款与杂项必须留给人;把完成率与新咨询的不确定性抽样进去,消灭率九成区间为 0.468 到 0.601,要达到 0.9 需要统一完成率 1.086,算术上做不到。 书中参数为示意,全部计算由书中程序生成;本书是非个人化经营建议,不构成法律意见。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.0182
genuine typo rebinds per year 477 level hijacks/yr self-served to human L0 none 36.5000 477 0 L1 code to old address 0.0002 0 477 L2 receipt proof 0.0182 406 72 L1 sends the code to the mistyped address itself: a stranger may own it, so L1 both fails the genuine user and leaks. L2: chance of at least one hijack in a year 0.0183
查看完整验算程序
# Chapter 4. p43: verifying the holder before a rebind
# 36,500 orders a year (100 a day). An outsider who has learned an
# order number tries to move delivery to his own address on a share
# 0.001 of orders. Genuine rebind requests: 0.4 of not-received tickets
# (p11 share 0.268 of 12.20 tickets per 100 orders) are typo addresses.
# Proof levels and their guess spaces are illustrative.
import math
ORDERS = 36500
ATTEMPT = 0.001
TRIES = 5
typo = ORDERS * 0.122 * 0.268 * 0.4
LEVELS = [
# name, outsider success per attempt, genuine self-serve share
("L0 none", 1.0, 1.0),
("L1 code to old address", TRIES / 10 ** 6, 0.0),
("L2 receipt proof", TRIES / 10 ** 4, 0.85),
]
print("genuine typo rebinds per year {:.0f}".format(typo))
print("level hijacks/yr self-served to human")
for name, p, selfs in LEVELS:
hij = ORDERS * ATTEMPT * p
print("{:<24} {:>10.4f} {:>11.0f} {:>8.0f}".format(
name, hij, typo * selfs, typo * (1 - selfs)))
print("L1 sends the code to the mistyped address itself: a stranger")
print("may own it, so L1 both fails the genuine user and leaks.")
p_any = 1 - (1 - TRIES / 10 ** 4) ** math.ceil(ORDERS * ATTEMPT)
print("L2: chance of at least one hijack in a year {:.4f}".format(p_any))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《日入百单零客服自愈界面、错填自助修正状态机与售后工单源头消灭母典》第 4 章「防滥用次数锁与换绑验证:拦住脚本,不拦真人」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-401 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026401,
author = {Fan, Yafu},
title = {Zero-Ticket Self-Repairing Order Interfaces, Self-Service Correction State Machines and Pre-Emptive Support Elimination},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}