Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用CF worker会透传用户的真实IP #117

Open
SWcoffee opened this issue Sep 4, 2024 · 1 comment
Open

使用CF worker会透传用户的真实IP #117

SWcoffee opened this issue Sep 4, 2024 · 1 comment

Comments

@SWcoffee
Copy link

SWcoffee commented Sep 4, 2024

https://linux.do/t/topic/89856
const IPHeadersFake = [
'x-real-ip',
'x-forwarded-for',
'cf-connecting-ip',
]
麻烦在代理的时候把这几个header删一下,或者传递一个随机的IP

@assassinliujie
Copy link

image
cf自带的规则里面有,可以打开开关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants