參考
查IP的來源
1.用nslookup 或 dig -x [IP]
判斷準度普通

2.Linux可以裝geoiplookup
geoiplookup [ IP ]

3.透過ipinfo.ip去查
配合curl
ex:
#curl ipinfo.io/203.71.84.1
{
"ip": "203.71.84.1",
"hostname": "No Hostname",
"city": null,
"region": null,
"country": "TW",
"loc": "23.5000,121.0000",
"org": "AS1659 Tiawan Academic Network (TANet) Information Center"
}

ipinfo.io/203.71.84.1
{
"ip": "203.71.84.1",
"hostname": "No Hostname",
"city": null,
"region": null,
"country": "TW",
"loc": "23.5000,121.0000",
"org": "AS1659 Tiawan Academic Network (TANet) Information Center"
}

文章標籤
全站熱搜
創作者介紹
創作者 slinbody 的頭像
slinbody

495884965

slinbody 發表在 痞客邦 留言(0) 人氣(178)