阅读真实的ips.
出版商:必威平台那4月13日需要通过我们的CDN服务查看您的客户的真实IPS?没问题!
nginx:
nginx使这个超级简单又是重点。使用“--with-http_realip_module”编译nginx构建
./configure --with-http_realip_module
然后在位置{}指令(或Server / HTTP)的位置以下:
set_real_ip_from 103.126.137.30/32;
set_real_ip_from 103.126.138.82/32;
set_real_ip_from 172.107.92.10/32;
set_real_ip_from 68.168.30.2/32;
set_real_ip_from 103.78.122.66/32;
set_real_ip_from 172.106.111.18/32;
set_real_ip_from 172.107.94.26/32;
set_real_ip_from 23.238.135.42/32;
set_real_ip_from 23.228.221.74/32;
set_real_ip_from 45.34.165.2/32;
set_real_ip_from 172.107.96.42/32;
set_real_ip_from 103.78.121.195/32;
set_real_ip_from 103.102.161.112/32;
set_real_ip_from 172.107.196.222/32;
set_real_ip_from 172.107.207.20/32;
real_ip_header x-转发的;
real_ip_rocureive;
set_real_ip_from 103.126.138.82/32;
set_real_ip_from 172.107.92.10/32;
set_real_ip_from 68.168.30.2/32;
set_real_ip_from 103.78.122.66/32;
set_real_ip_from 172.106.111.18/32;
set_real_ip_from 172.107.94.26/32;
set_real_ip_from 23.238.135.42/32;
set_real_ip_from 23.228.221.74/32;
set_real_ip_from 45.34.165.2/32;
set_real_ip_from 172.107.96.42/32;
set_real_ip_from 103.78.121.195/32;
set_real_ip_from 103.102.161.112/32;
set_real_ip_from 172.107.196.222/32;
set_real_ip_from 172.107.207.20/32;
real_ip_header x-转发的;
real_ip_rocureive;
我们将在添加更多节点时更新列表!
Apach.
创建一个文件,如“trusted-proxies.list”,才能坚持文档,我们将在“conf”文件夹中。
将以下IP放在您的Trusted-Proxies.list文件中:
103.126.137.30/32
103.126.138.82/32
172.107.92.10/32
68.168.30.2/32
103.78.122.66/32
172.106.111.18/32
172.107.94.26/32
23.238.135.42/32
23.228.221.74/32
45.34.165.2/32
172.107.96.42/32
103.78.121.195/32
103.102.161.112/32
172.107.196.222/32
172.107.207.20/32
103.126.138.82/32
172.107.92.10/32
68.168.30.2/32
103.78.122.66/32
172.106.111.18/32
172.107.94.26/32
23.238.135.42/32
23.228.221.74/32
45.34.165.2/32
172.107.96.42/32
103.78.121.195/32
103.102.161.112/32
172.107.196.222/32
172.107.207.20/32
注意:当我们添加更多节点时,将更新此列表!
然后只需将以下内容添加到Apache配置中:
传导菲普勒x-转发 - for
RemiveIpinternalproxylist Conf / Trusted-Proxies.lst
RemiveIpinternalproxylist Conf / Trusted-Proxies.lst
并将日志文件(通常为/etc/apache2/apache2.conf)更改为:
logformat“%a%l%u%t \”%r \“%> s%o \”%{referer} i \“\”%{用户代理} i \“”组合
我们将根据需要使用更多Web服务器更新本教程,请保持调整!如果您使用不同的Web服务器,请联系我们支持帮助。