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

阿里 CDN 有没有像 cloudflare 的 /cdn-cgi/trace 一样的 API 接口

  •  
  •   yaott2020 · 2022-02-20 00:59:19 +08:00 · 2280 次点击
    这是一个创建于 767 天前的主题,其中的信息可能已经有所发展或是发生改变。
    RT 想用来获取本地 IP ,但又不想买阿里的 CDN ,CloudFlare 可以这么做

    curl http://www.cloudflare.com/cdn-cgi/trace
    >>>
    fl=23***9
    h=www.cloudflare.com
    ip=103******6
    ts=164******.243
    visit_scheme=https
    uag=Mozilla/5.0****
    colo=***
    http=http/2
    loc=***
    tls=TLSv1.3
    sni=plaintext
    warp=off
    gateway=off
    >>>

    类似这种
    5 条回复    2022-02-25 14:39:49 +08:00
    yaott2020
        1
    yaott2020  
    OP
       2022-02-20 01:08:34 +08:00
    或者国内有没有其他 CDN 运营商有类似功能,都可以。

    想从各个节点收集本地 IP ,本地是多出口
    Reficul
        2
    Reficul  
       2022-02-20 01:33:27 +08:00
    ipip.net 好像比较准,别的不太对。

    ```
    curl https://myip.ipip.net
    curl https://httpbin.org/ip
    curl 'https://ip.taobao.com/outGetIpInfo' --data-raw 'ip=myip&accessKey=alibaba-inc'
    ```
    ZeroClover
        3
    ZeroClover  
       2022-02-20 01:38:29 +08:00
    https://ip.orz.tools/

    多出口检测
    yaott2020
        4
    yaott2020  
    OP
       2022-02-22 22:45:25 +08:00
    多谢各位,其实 CloudFlare 和 京东云 国内合作节点也可以,和 CloudFlare 一样操作就行
    Lentin
        5
    Lentin  
       2022-02-25 14:39:49 +08:00 via iPhone
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3107 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.