Nginx Proxy Manager进阶:隐藏真实IP

某AI的API在反代时,如果不小心泄露了原始的访问IP,很可能被封账号。这里在Nginx Proxy Manager里屏蔽掉一些可能泄露原始访问IP的header。

1
2
3
4
5
6
7
8
9
10
proxy_set_header X-Real-IP "";
proxy_set_header X-Forwarded-For "";
proxy_set_header CF-Connecting-IP "";
proxy_set_header Cookie "";
proxy_set_header CF-IPCOUNTRY "US";
proxy_hide_header CF-Connecting-IP;
proxy_hide_header X-Real-IP;
proxy_hide_header X-Forwarded-For;
proxy_hide_header Cookie;
proxy_hide_header CF-IPCOUNTRY;

Nginx Proxy Manager进阶:隐藏真实IP
https://b.limour.top/2166.html
Author
Limour
Posted on
March 16, 2023
Licensed under