Add IP info lookup for Admins

Oh wow, it includes the AS number? That could be useful for detecting cheap proxies.

Here’s what it returns for my droplet in the SF cluster:

curl ipinfo.io/107.170.242.76
{
  "ip": "107.170.242.76",
  "hostname": "hello.from.riking.org",
  "city": "New York",
  "region": "New York",
  "country": "US",
  "loc": "40.7267,-73.9981",
  "org": "AS14061 Digital Ocean, Inc.",
  "postal": "10012"
}

Yeah, “Digital Ocean” is way more useful than “New York” there.

And my current location on campus WiFi:

{
  "ip": "129.65.150.6",
  "hostname": "pcp069467pcs.wireless.calpoly.edu",
  "city": "San Luis Obispo",
  "region": "California",
  "country": "US",
  "loc": "35.3471,-120.4553",
  "org": "AS2152 California State University Network",
  "postal": "93407"
}

Again, AS number is really useful!

3 个赞