Skip to content

关于 CFW 错误页面 IP 地址的疑问 #175

Answered by SeaHOH
ZK6100HGA asked this question in 问答/咨询
Discussion options

You must be logged in to vote

是直连,IP 等原始信息被洗掉了,会记录成 Worker fetch 请求的 IP,但仍然存在跟踪 ID。

for (let [key, value] of request.headers.entries())
// 排除 headers 中保存的请求 IP 等信息
if (!['cf', 'x'].includes(key.substring(0, key.indexOf('-'))))
wsHeaders.append(key, value)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SeaHOH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants