
有业务需要本地客户端看外网 IP,就做了一个小轮子(后面才看到 https://ip.sb ,但是做都做了 233,就当记录一下吧)
地址的作用都是等同的,区别就是 ga 和 ml 都强制 https,cf 没有
功能
curl https://whatip.ga/json 获取 JSON 格式顺便做了一点其他(没卵用)的……
/ping pong/base64/{content} or /?base64={content} /decode?base64={content} or /base64/{content}/decode/generate_204 or /204 /to/{base64} Location: //{Decoded Content}/to/{base64}/http /to/{base64}/https 给 {Decoded Content} 加上前缀/to/{base64}/origin 等同-> Location: {Decoded Content}部署在 Hostker 上面,速度还是不错的,有比较冷门需求的就拿去玩玩咯
没有留任何记录(懒),Apache2 的访问记录除外(这个也不会去看的)
还不支持 IPV6,找时间会加上
还有两个小功能,用来测试用也挺好
getHeader getUserAgent 提示:抑制了所有的错误信息,如果收到空白,除了可能是输入不对,也可能是500,这里还会有多一点处理 Written in PHP,Single File(自己简单打包了一下REQUEST_URL)
1 nowgoo 2017 年 8 月 29 日 还是 ifconfig.io 比较符合直觉。 |
3 mooncakejs 2017 年 8 月 30 日 再推荐一个轮子 https://httpbin.org/ |
4 Thiece 2017 年 8 月 30 日 via iPhone hostker 越来越慢了 |
5 jamesliu96 2017 年 8 月 31 日 |
6 AlwaysBehave OP |