各CDN的IP段,可用于 Nginx 等获取真实IP地址。

CloudFlare:
https://www.cloudflare.com/ips-v4
https://www.cloudflare.com/ips-v6

173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/12
172.64.0.0/13
131.0.72.0/22
2400:cb00::/32
2606:4700::/32
2803:f800::/32
2405:b500::/32
2405:8100::/32
2a06:98c0::/29
2c0f:f248::/32

百度云加速: https://su.baidu.com/helps/index.html#/0/5a4ca79bb34f69327c4b9dc3

59.51.81.128/26
124.95.168.128/26
124.95.191.0/24
101.71.55.0/24
183.232.51.0/24
61.182.137.0/25
42.236.93.0/24
222.216.190.0/24
58.211.2.0/24
119.188.9.0/24
112.25.90.0/24
117.34.13.0/24
150.138.150.0/24
150.138.149.128/25
220.170.185.0/24
115.231.186.0/25
111.32.135.0/25
183.61.177.0/24
183.61.236.0/24
42.81.16.0/24
157.255.25.0/24
122.190.2.0/24
125.39.239.0/24
113.207.101.0/25

知道创宇云安全: http://help.yunaq.com/faq/943/index.html

113.107.238.0/24
106.42.25.0/24
183.222.96.0/24
117.21.219.0/24
116.55.250.0/24
111.202.98.0/24
111.13.147.0/24
122.228.238.0/24
58.58.81.0/24
1.31.128.0/24
123.155.158.0/24
106.119.182.0/24
113.207.76.0/24
117.23.61.0/24
118.212.233.0/24
111.47.226.0/24
219.153.73.0/24
113.200.91.0/24
203.90.247.0/24
183.110.242.0/24
185.254.242.0/24
116.211.155.0/24
1.255.41.0/24
112.90.216.0/24
1.255.100.0/24

奇安信网站卫士: https://wangzhan.qianxin.com/notice/detail/10057

36.27.212.0/24
123.129.232.0/24

Nginx设置方式:

set_real_ip_from xxx.xxx.xxx.xxx/xx; # CDN IP段,多个IP段分多行填写
set_real_ip_from 127.0.0.1/32;
real_ip_header X-Forwarded-For;
real_ip_recursive on;


原文链接地址:http://blog.exsvc.cn/article/cdn-ips.html
转载请注明:转载自 易科博客 ,谢谢!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注