显示客户端IP的详细信息
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.7 KiB

<p align="center">
<br />
<img width="80px" src="./assets/img/favicon.png" align="center" alt="echoIP" />
<h1 align="center">echoIP</h1>
<p align="center">显示客户端IP、查询IP详细信息</p>
</p>
<p align="center">
<img alt="license" src="https://img.shields.io/badge/license-MIT-orange.svg" />
<img alt="version" src="https://img.shields.io/badge/version-v1.4-brightgreen.svg" />
<img alt="total-lines" src="https://img.shields.io/tokei/lines/github/dnomd343/echoIP" />
<br />
</p>
3 years ago
+ 获取IP地址的AS、地址、ISP、网段等详细信息,支持IPv4与IPv6地址。
3 years ago
+ 项目部署在服务器上,客户端向服务器查询自身IP地址,或任意IP地址的详细信息。
+ 兼容CDN封装在http头部的原始IP信息,部署时无需做额外修改,直接启用CDN加速即可。
+ 数据来自多个上游服务整合处理,包括在线API与离线数据库,同时支持命令行与网页端查询方式。
3 years ago
## 使用方法
3 years ago
### 命令行模式
```
# 查询客户端IP
3 years ago
shell> curl ip.343.re
# 查询客户端UA
shell> curl ip.343.re/ua
# 查询客户端IP的详细信息
3 years ago
shell> curl ip.343.re/info
# 查询指定IP地址详细信息
shell> curl ip.343.re/8.8.8.8
```
![echoIP-cli](https://pic.dnomd343.top/images/X4F.png)
3 years ago
更多使用方法见[命令列表](https://github.com/dnomd343/echoIP/wiki/cmd-list)
3 years ago
### 网页访问模式
你可以直接在 [ip.343.re](https://ip.343.re/) 或 [ip.dnomd343.top](https://ip.dnomd343.top/) 上进行查询,或者将项目部署到自己的服务器上。
3 years ago
![echoIP-web](https://pic.dnomd343.top/images/FR5.png)
+ 双击IP字段,可获取当前数据库版本。
+ 点击AS编号,将跳转到该自治系统的详细信息页面。
+ 点击经纬度信息,将打开谷歌地球并显示该点的三维图像。
+ 双击显示框空白处,将会弹出一个二维码,扫描可以直达当前页面。
3 years ago
## 部署教程
> 如果想在自己域名下建立echoIP服务,可按如下方式部署
[容器部署方式(推荐)](https://github.com/dnomd343/echoIP/wiki/setup-docker)
[常规部署方式](https://github.com/dnomd343/echoIP/wiki/setup)
3 years ago
[CDN注意事项](https://github.com/dnomd343/echoIP/wiki/cdn)
[Proxy Protocol支持](https://github.com/dnomd343/echoIP/wiki/proxy-protocol)
## 开发资料
3 years ago
[容器构建](https://github.com/dnomd343/echoIP/wiki/docker-build)
[开发接口](https://github.com/dnomd343/echoIP/wiki/interface)
[上游服务](https://github.com/dnomd343/echoIP/wiki/upstream)
## 许可证
MIT ©2021 [@dnomd343](https://github.com/dnomd343) [@ShevonKuan](https://github.com/ShevonKuan)