Loading...
首先,我们要确保 Nginx 包含 http_realip_module 模块(因为我是宝塔面板安装的,默认就有了,其他环境自行百度下怎么安装吧)然后在 nginx.conf 的 http 里设置已知的 CDN 节点 IP 段,如下: #CloudFlare 节点 for IPv4 set_real_ip_from 173.245.48.0/20; set_real_ip_from 103....