V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ctftemp
V2EX  ›  问与答

如何判断一个 ip 是不是 cdn?

  •  
  •   ctftemp · 2015-08-10 19:05:51 +08:00 · 8975 次点击
    这是一个创建于 3392 天前的主题,其中的信息可能已经有所发展或是发生改变。
    有没有各大cdn厂商的ip数据呢。
    17 条回复    2015-08-12 08:49:15 +08:00
    alect
        1
    alect  
       2015-08-10 19:36:58 +08:00
    可以发出来帮你查一查
    ctftemp
        2
    ctftemp  
    OP
       2015-08-10 19:38:44 +08:00
    @alect 非常感谢,但是我想要能编程实现的方法。
    Andy1999
        3
    Andy1999  
       2015-08-10 19:39:52 +08:00 via iPhone
    一般CDN都在header里面有标示
    webjin
        4
    webjin  
       2015-08-10 19:47:54 +08:00 via Android
    @Andy1999 ???
    lshero
        5
    lshero  
       2015-08-10 20:00:05 +08:00
    大厂的CDN一般都有AS自治域
    自己拿一个IP去查AS号再去查AS号的信息呗

    @Andy1999 的意思是你打开一个托管到CDN的URL比如

    http://www.12306.cn/mormhweb/images/icobg_1.1.png
    X-Cache:HIT from cache.51cdn.com
    X-Powered-By:Servlet/2.5 JSP/2.1
    X-Via:1.1 yc21:9 (Cdn Cache Server V2.0)

    https://cdn.v2ex.co/avatar/a6a2/62e3/44095_large.png
    etag:"55bcde3b-3147"
    expires:Thu, 31 Dec 2037 23:55:55 GMT
    last-modified:Sat, 01 Aug 2015 14:56:59 GMT
    x-orca-accelerator:HIT from 064.mul.hkg01.hk.krill.c3edge.net

    Header头里面就有CDN供应商的信息啊
    kslr
        6
    kslr  
       2015-08-10 20:00:32 +08:00 via Android
    @webjin 比如七牛 header里有一条是CDN qiniu
    ctftemp
        7
    ctftemp  
    OP
       2015-08-10 20:04:51 +08:00
    @lshero 关键是这个header由各厂自己定义各不相同,有的还可能没header,难以判断啊。赶脚只能自己先收集一份名单,再做判断了。
    Strikeactor
        8
    Strikeactor  
       2015-08-10 20:09:19 +08:00
    http://dns.aizhan.com/
    这边查也是个办法,大厂的CDN往往会出来一大堆域名
    webjin
        9
    webjin  
       2015-08-10 20:10:38 +08:00 via Android
    @lshero bgp
    popu111
        10
    popu111  
       2015-08-10 20:12:19 +08:00
    @lshero 接上->.he.net
    Andy1999
        11
    Andy1999  
       2015-08-10 21:20:48 +08:00 via iPhone
    <cdn>
    <!--加速乐 变更时会发微信-->
    <item>116.211.121.0-116.211.121.255</item>
    <item>119.188.35.0-119.188.35.255</item>
    <item>221.231.137.0-221.231.137.255</item>
    <item>113.105.148.0-113.105.148.255</item>
    <item>61.155.222.0-61.155.222.255</item>
    <item>61.240.149.0-61.240.149.255</item>
    <item>112.25.16.0-112.25.16.255</item>
    <item>121.14.143.0-121.14.143.255</item>
    <item>103.15.194.0-103.15.194.255</item>
    <item>59.52.28.0-59.52.28.255</item>
    <item>211.162.64.0-211.162.64.255</item>
    <item>180.96.20.0-180.96.20.255</item>
    <item>103.1.65.0-103.1.65.255</item>
    <item>218.65.212.0-218.65.212.255</item>
    <item>218.60.62.0-218.60.62.255</item>
    <item>42.48.109.0-42.48.109.255</item>
    <item>42.236.72.0-42.236.72.255</item>
    <item>117.21.219.0-117.21.219.255</item>
    <item>218.75.177.0-218.75.177.255</item>

    <!--dnspod 39条记录-->
    <item>121.14.73.8</item>
    <item>119.147.65.237</item>
    <item>119.147.193.63</item>
    <item>183.60.5.176</item>
    <item>112.90.82.164</item>
    <item>112.90.141.121</item>
    <item>112.90.82.139</item>
    <item>120.198.191.18</item>
    <item>120.198.191.27</item>
    <item>120.198.191.23</item>
    <item>61.152.100.115</item>
    <item>180.153.81.158</item>
    <item>180.153.212.45</item>
    <item>101.226.73.30</item>
    <item>27.115.124.32</item>
    <item>112.64.199.150</item>
    <item>112.64.238.77</item>
    <item>120.204.200.21</item>
    <item>183.195.233.188</item>
    <item>183.195.233.189</item>
    <item>118.123.234.12</item>
    <item>223.85.133.12</item>
    <item>115.236.140.15</item>
    <item>122.225.217.113</item>
    <item>115.236.137.16</item>
    <item>124.160.167.29</item>
    <item>125.39.208.223</item>
    <item>111.161.54.11</item>
    <item>111.30.135.16</item>
    <item>123.151.43.40</item>
    <item>119.188.77.8</item>
    <item>180.96.74.17</item>
    <item>113.142.38.15</item>
    <item>113.142.9.187</item>
    <item>113.142.18.18</item>
    <item>103.7.28.45</item>
    <item>103.7.29.172</item>
    <item>184.105.164.228</item>
    <item>184.105.164.231</item>

    <!--360cdn 15条记录-->
    <item>183.136.133.0-183.136.133.255</item>
    <item>220.181.55.0-220.181.55.255</item>
    <item>101.226.4.0-101.226.4.255</item>
    <item>180.153.235.0-180.153.235.255</item>
    <item>122.143.15.0-122.143.15.255</item>
    <item>27.221.20.0-27.221.20.255</item>
    <item>202.102.85.0-202.102.85.255</item>
    <item>61.160.224.0-61.160.224.255</item>
    <item>112.25.60.0-112.25.60.255</item>
    <item>182.140.227.0-182.140.227.255</item>
    <item>221.204.14.0-221.204.14.255</item>
    <item>222.73.144.0-222.73.144.255</item>
    <item>61.240.144.0-61.240.144.255</item>
    <item>113.17.174.0-113.17.174.255</item>
    <item>125.88.189.0-125.88.189.255</item>
    <item>120.52.18.1-120.52.18.255</item>
    <item>119.84.15.0-119.84.15.255</item>

    <!--安全宝-->
    <item>103.17.43.0-103.17.43.255</item>
    <item>111.161.66.128-111.161.66.191</item>
    <item>14.152.85.0-14.152.85.255</item>
    <item>117.25.139.0-117.25.139.255</item>
    <item>220.181.135.0-220.181.135.255</item>
    <item>115.231.110.0-115.231.110.255</item>
    <item>124.202.164.0-124.202.164.255</item>
    <item>58.30.212.0-58.30.212.255</item>
    <item>117.25.156.0-117.25.156.255</item>
    <item>36.250.5.0-36.250.5.255</item>
    <item>183.60.136.0-183.60.136.255</item>
    <item>183.61.185.0-183.61.185.255</item>
    <item>14.17.69.0-14.17.69.255</item>
    <item>120.197.85.0-120.197.85.255</item>
    <item>183.232.29.0-183.232.29.255</item>
    <item>61.55.188.0-61.55.188.255</item>
    <item>182.118.12.0-182.118.12.255</item>
    <item>182.118.38.0-182.118.38.255</item>
    <item>61.158.240.0-61.158.240.255</item>
    <item>42.51.25.0-42.51.25.255</item>
    <item>119.97.151.0-119.97.151.255</item>
    <item>58.49.105.0-58.49.105.255</item>
    <item>61.147.92.0-61.147.92.255</item>
    <item>69.28.58.0-69.28.58.255</item>
    <item>176.34.28.0-176.34.28.255</item>
    <item>54.250.120.0-54.250.120.255</item>
    <item>112.253.3.0-112.253.3.255</item>
    <item>119.167.147.0-119.167.147.255</item>
    <item>123.129.220.0-123.129.220.255</item>
    <item>223.99.255.0-223.99.255.255</item>
    <item>117.34.72.0-117.34.72.255</item>
    <item>117.34.91.0-117.34.91.255</item>
    <item>124.95.180.0-124.95.180.255</item>
    <item>182.140.245.0-182.140.245.255</item>
    <item>182.140.246.0-182.140.246.255</item>
    <item>123.150.187.0-123.150.187.255</item>
    <item>221.238.22.0-221.238.22.255</item>
    <item>113.31.18.0-113.31.18.255</item>
    <item>125.39.32.0-125.39.32.255</item>
    <item>125.39.191.0-125.39.191.255</item>
    <item>125.39.18.0-125.39.18.255</item>
    <item>14.136.130.0-14.136.130.255</item>
    <item>210.209.122.0-210.209.122.255</item>

    <!--百度云加速 包含了即将上线的节点-->
    <item>119.188.14.0-119.188.14.254</item>
    <item>119.188.132.0-119.188.132.254</item>
    <item>61.155.149.0-61.155.149.254</item>
    <item>61.182.137.0-61.182.137.126</item>
    <item>222.216.190.0-222.216.190.254</item>
    <item>183.60.235.0-183.60.235.254</item>
    <item>117.34.28.0-117.34.28.254</item>
    <item>119.167.246.0-119.167.246.254</item>
    <item>42.236.7.0-42.236.7.254</item>
    <item>119.167.246.0-119.167.246.254</item>
    <item>117.27.149.0-117.27.149.254</item>
    <item>59.51.81.0-59.51.81.254</item>
    <item>183.61.236.0-183.61.236.254</item>
    <item>124.95.168.129-124.95.168.254</item>
    <item>61.54.46.1-61.54.47.254</item>
    <item>42.81.15.1-42.81.16.254</item>
    <item>101.71.55.1-101.71.56.254</item>
    <item>115.231.235.1-115.231.236.254</item>
    <item>183.232.51.1-183.232.51.254</item>
    <item>117.34.11
    Andy1999
        12
    Andy1999  
       2015-08-10 21:26:01 +08:00 via iPhone
    <!--百度云加速 包含了即将上线的节点-->
    <item>119.188.14.0-119.188.14.254</item>
    <item>119.188.132.0-119.188.132.254</item>
    <item>61.155.149.0-61.155.149.254</item>
    <item>61.182.137.0-61.182.137.126</item>
    <item>222.216.190.0-222.216.190.254</item>
    <item>183.60.235.0-183.60.235.254</item>
    <item>117.34.28.0-117.34.28.254</item>
    <item>119.167.246.0-119.167.246.254</item>
    <item>42.236.7.0-42.236.7.254</item>
    <item>119.167.246.0-119.167.246.254</item>
    <item>117.27.149.0-117.27.149.254</item>
    <item>59.51.81.0-59.51.81.254</item>
    <item>183.61.236.0-183.61.236.254</item>
    <item>124.95.168.129-124.95.168.254</item>
    <item>61.54.46.1-61.54.47.254</item>
    <item>42.81.15.1-42.81.16.254</item>
    <item>101.71.55.1-101.71.56.254</item>
    <item>115.231.235.1-115.231.236.254</item>
    <item>183.232.51.1-183.232.51.254</item>
    <item>117.34.111.1-117.34.112.254</item>
    <item>120.52.113.1-120.52.114.254</item>
    <item>182.150.0.1-182.150.1.254</item>

    <!--网宿科技CDN-->
    <item>101.227.66.0-101.227.66.254</item>
    <item>106.120.191.0-106.120.191.254</item>
    <item>111.206.169.0-111.206.169.254</item>
    <item>111.206.34.0-111.206.34.254</item>
    <item>111.206.73.0-111.206.73.254</item>
    <item>113.5.80.0-113.5.80.254</item>
    <item>114.80.143.0-114.80.143.254</item>
    <item>118.212.135.0-118.212.135.254</item>
    <item>119.84.119.0-119.84.119.254</item>
    <item>122.228.112.0-122.228.112.254</item>
    <item>123.159.203.0-123.159.203.254</item>
    <item>124.167.235.0-124.167.235.254</item>
    <item>125.39.1.0-125.39.1.254</item>
    <item>171.112.96.0-171.112.96.254</item>
    <item>182.140.142.0-182.140.142.254</item>
    <item>182.140.147.0-182.140.147.254</item>
    <item>183.136.208.0-183.136.208.254</item>
    <item>183.57.144.0-183.57.144.254</item>
    <item>183.60.232.0-183.60.232.254</item>
    <item>202.100.78.0-202.100.78.254</item>
    <item>202.107.244.0-202.107.244.254</item>
    <item>218.92.220.0-218.92.220.254</item>
    <item>219.145.171.0-219.145.171.254</item>
    <item>220.194.200.0-220.194.200.254</item>
    <item>221.13.201.0-221.13.201.254</item>
    <item>221.204.194.0-221.204.194.254</item>
    <item>221.238.24.0-221.238.24.254</item>
    <item>221.6.152.0-221.6.152.254</item>
    <item>222.163.201.0-222.163.201.254</item>
    <item>222.186.130.0-222.186.130.254</item>
    <item>222.216.188.0-222.216.188.254</item>
    <item>36.250.87.0-36.250.87.254</item>
    <item>58.220.6.0-58.220.6.254</item>
    <item>58.51.150.0-58.51.150.254</item>
    <item>59.42.255.0-59.42.255.254</item>
    <item>59.44.209.0-59.44.209.254</item>
    <item>60.210.11.0-60.210.11.254</item>
    <item>60.220.196.0-60.220.196.254</item>
    <item>60.220.197.0-60.220.197.254</item>
    <item>60.222.223.0-60.222.223.254</item>
    <item>61.154.102.0-61.154.102.254</item>
    <item>61.167.55.0-61.167.55.254</item>
    <item>61.179.107.0-61.179.107.254</item>
    <item>61.185.133.0-61.185.133.255</item>
    <item>61.188.191.0-61.188.191.254</item>
    <item>61.54.12.0-61.54.12.254</item>
    <item>120.36.156.0-120.36.156.254</item>
    <item>218.107.193.0-218.107.193.254</item>
    <item>222.47.61.0-222.47.61.254</item>
    <item>218.85.130.104-218.85.130.255</item>
    <item>180.97.180.1-180.97.180.254</item>
    <item>58.51.148.1-58.51.148.254</item>
    <item>218.58.222.1-218.58.222.254</item>

    <!--百度加速乐(可能已经不需要了)-->
    <item>118.192.48.0-118.192.48.255</item>
    <item>122.193.41.0-122.193.41.255</item>
    <item>180.76.3.0-180.76.3.255</item>
    <item>182.118.46.0-182.118.46.255</item>
    <item>175.100.207.0-175.100.207.255</item>
    <item>221.10.36.0-221.10.36.255</item>

    <!--蓝汛CDN-->
    <item>118.123.16.0-118.123.16.255</item>

    <!--ttt-->
    <item>118.123.250.11</item>
    <item>206.161.216.200</item>
    <item>203.116.173.206</item>
    <item>203.176.237.57</item>
    <item>183.90.187.98</item>

    <!--阿里云CDN-->
    <item>42.120.107.1-42.120.107.30</item>
    <item>42.120.107.33-42.120.107.35</item>
    <item>42.120.107.40</item>
    <item>42.120.107.50</item>
    <item>121.42.17.201-121.42.17.230</item>
    <item>121.42.17.240</item>
    <item>121.42.17.250</item>
    <item>140.205.253.129-140.205.253.201</item>

    <!--微软云适配-->
    <item>42.159.6.252</item>
    <item>168.63.134.10</item>
    <item>42.159.8.25</item>
    <item>42.159.4.166</item>

    <!--牛盾-->
    <item>113.31.27.0-113.31.27.255</item>
    <item>113.31.87.0-113.31.87.255</item>
    <item>183.56.172.0-183.56.172.254</item>
    <item>222.186.19.0-222.186.19.254</item>
    <item>119.97.146.0-119.97.146.254</item>
    <item>122.226.182.0-122.226.182.254</item>
    <item>123.149.54.0-123.149.54.255</item>
    <item>112.253.12.0-112.253.12.255</item>
    <item>221.204.202.0-221.204.202.255</item>
    <item>125.39.21.0-125.39.21.255</item>
    <item>42.236.6.0-42.236.6.255</item>
    <item>60.8.151.0-60.8.151.255</item>
    <item>115.231.91.0-115.231.91.255</item>
    <item>61.174.9.0-61.174.9.254</item>
    <item>120.92.248.0-120.92.248.254</item>
    <item>223.94.66.0-223.94.66.254</item>
    <item>222.88.94.0-222.88.94.254</item>
    <item>61.163.30.0-61.163.30.254</item>
    <item>112.25.11.0-112.25.11.255</item>
    <item>112.253.12.0-112.253.12.255</item>
    <item>113.31.27.0-113.31.27.255</item>
    <item>113.31.87.0-113.31.87.255</item>
    <item>115.231.91.0-115.231.91.255</item>
    <item>119.97.146.0-119.97.146.255</item>
    <item>122.226.182.0-122.226.182.255</item>
    <item>122.70.134.0-122.70.134.255</item>
    <item>123.149.54.0-123.149.54.255</item>
    <item>124.193.166.0-124.193.166.255</item>
    <item>125.39.5.0-125.39.5.255</item>
    <item>183.232.66.0-183.232.66.255</item>
    <item>183.250.179.0-183.250.179.255</item>
    <item>183.56.172.0-183.56.172.255</item>
    <item>221.204.202.0-221.204.202.255</item>
    <item>222.186.19.0-222.186.19.255</item>
    <item>222.88.94.0-222.88.94.255</item>
    <item>42.236.6.0-42.236.6.255</item>
    <item>60.8.151.0-60.8.151.255</item>
    <item>61.174.9.0-61.174.9.255</item>

    <!--CloudFlare-->
    <item>103.21.244.0-103.21.247.254</item>
    <item>103.22.200.0-103.22.203.254</item>
    <item>103.31.4.0-103.31.7.254</item>
    <item>104.16.0.0-104.31.255.254</item>
    <item>108.162.192.0-108.162.255.254</item>
    <item>141.101.64.0-141.101.127.254</item>
    <item>162.158.0.0-162.159.255.254</item>
    <item>172.64.0.0-172.71.255.254</item>
    <item>173.245.48.0-173.245.63.254</item>
    <item>188.114.96.0-188.114.111.254</item>
    <item>190.93.240.0-190.93.255.254</item>
    <item>197.234.240.0-197.234.243.254</item>
    <item>198.41.128.0-198.41.255.254</item>
    <item>199.27.128.0-199.27.135.254</item>

    <!--Incapdns-->
    <item>199.83.128.1-199.83.135.254</item>
    <item>198.143.32.1-198.143.63.254</item>
    <item>149.126.72.1-149.126.79.254</item>
    <item>103.28.248.1-103.28.251.254</item>
    <item>185.11.124.1-185.11.127.254</item>
    <item>45.64.64.0-45.64.67.255</item>
    <item>192.230.64.1-192.230.127.254</item>
    Andy1999
        13
    Andy1999  
       2015-08-10 21:27:15 +08:00 via iPhone   ❤️ 1
    V2EX 截断了好几次 楼主将就着看看吧,还有腾讯云大禹和腾讯云CDN 我暂时没收集到
    以及Akamai的 太大了发不上来
    simodorg
        14
    simodorg  
       2015-08-10 21:28:15 +08:00
    @Andy1999 写进 gist 里面吧,这样好长 = =。
    ctftemp
        15
    ctftemp  
    OP
       2015-08-11 18:41:05 +08:00 via Android
    @Andy1999 太感谢了!请问你是怎么做的呢?如果可以最好在github维护一个列表,相信能服务很多人。
    Andy1999
        16
    Andy1999  
       2015-08-11 21:13:11 +08:00 via iPhone   ❤️ 1
    @ctftemp Azure开G5 zmap 扫全网IP
    开80的拿出来 再扫
    乌云上面有
    由于坑爹的Akamai IP数实在太大,没办法维护
    比如Akamai 有一个段都是的 貌似是23.0.0.0-23.255.255.255
    这实在没办法全贴上来 我尽力补齐
    ctftemp
        17
    ctftemp  
    OP
       2015-08-12 08:49:15 +08:00
    @Andy1999 明白了,谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1189 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:54 · PVG 07:54 · LAX 15:54 · JFK 18:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.