一个展示当前访问用户的 UA 和公网 IP 的小网页 https://myua.is
技术比较简单 net/http + autocert + GeoIP 支持常用命令行工具的方式获取公网 IP:
$ curl -L myua.is
$ http -b myua.is
$ wget -qO- myua.is
$ fetch -qo- https://myua.is
$ bat -print=b myua.is
一个展示当前访问用户的 UA 和公网 IP 的小网页 https://myua.is
技术比较简单 net/http + autocert + GeoIP 支持常用命令行工具的方式获取公网 IP:
$ curl -L myua.is
$ http -b myua.is
$ wget -qO- myua.is
$ fetch -qo- https://myua.is
$ bat -print=b myua.is
|
loadingMay 26, 2018
1
不考虑 github 一下?
|
|
hizzxMay 26, 2018
2
是呀,谢谢分享
|
|
misaka19000May 26, 2018
4
http://107.174.218.197/
|
|
azh7138mMay 26, 2018 via Android
6
emmmm,说出来你可能不信,Nginx 自己就可以做到
|
|
crllMay 26, 2018
8
@misaka19000 大佬,不考虑 github 一下吗?
|
|
9
@crll #8 <script src="https://gist.github.com/RitterHou/b5a72898585358e3385d78ffaa27f530.js"></script>
|
|
E1nMay 26, 2018 via Android
10
go 效率高吗
|
|
crllMay 26, 2018
12
@misaka19000 谢谢~~
|
|
azh7138mMay 27, 2018
14
|