Hacker Newsnew | past | comments | ask | show | jobs | submit | more coderholic's commentslogin

Absolutely!


Yeah that's also a great service. It doesn't include the network organization or hostname though, which you may or may not need.


How often is the AS info updated? What source do you use, and how do you handle multi-homed IP addresses?


IP addresses should only be announced by one ASN at a time (regardless if that AS is multihomed or singlehomed). If that's not the case that's usually a hint of prefix hijacking.


Yeah, exactly that! I'll have to check out Wappalyzer.

The code is written in coffeescript, and some key npm modules are:

- https://github.com/caolan/async

- https://github.com/brycebaril/node-tokenthrottle-redis

- https://github.com/rs/node-netmask

I was at one point using https://github.com/tjfontaine/node-dns for the hostname lookups, but it was significantly slower that the built in dns module, so I ended up wrapping that with my own timeout logic.


Thanks Zach! :)


You're welcome Ben! :)


What's your IP, and (roughly) correct location?


What's your IP?


Thanks for reporting! You should see that we correctly detect this as a bogon, but we should definitely be pulling the correct IP from the headers. I'll look into this.

    $ curl ipinfo.io/10.0.0.1
    {
      "ip": "10.0.0.1",
      "hostname": "No Hostname",
      "loc": "",
      "bogon": true
    }


Did you see http://ipinfo.io/pricing? What changes would you suggest?


Sorry, I somehow missed that site from reading your docs. I'm willing to chalk this up to my own mistake rather than bad design on your part.


Security (HTTPS) as a paid feature?


Definitely an interesting trend emerging here, with lots of different players entering the space. http://whisper.sh/ raised a $21M series B, and http://www.500strangers.com also recently launched.


This will come off very elitist, but these popular image-based self-expression venues like Reddit image macros, the pictures on whisper.sh and the inspirational/life lesson pictures people share on Facebook all the way back to MySpace blingee have a weird kitschy thing going. I should coin a neologism for it.

Whisper is like PostSecret without the irony and users over the age of 22. Part of me wants to get all haughty and say there's no way they need 21M, and the other part wants to get all haughty and say they need 1B, because people will get all over this stuff for this faux-honest emo 2.0 is how people really feel behind the layers of irony and spectacle.

I cringed when corporations started adopting sarcasm and slang to fit in on Twitter and FB, but now I cringe when I see companies using this kitschy-intimate-bitchy-tumblr style.


Seems like this kind of thing would have extremely low lock-in. All the usual mechanisms for that are invalid in this case.


If you're after IP details via an API you should check out http://ipinfo.io, eg:

    $ curl ipinfo.io
    {
      "ip": "67.188.232.131",
      "hostname": "c-67-188-232-131.hsd1.ca.comcast.net",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.385999999999996,-122.0838",
      "org": "AS7922 Comcast Cable Communications, Inc.",
      "phone": 650
    }

    $ curl ipinfo.io/geo
    {
      "ip": "67.188.232.131",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.385999999999996,-122.0838",
      "phone": 650
    }

    $ curl ipinfo.io/org
    AS7922 Comcast Cable Communications, Inc.
    
    $ curl ipinfo.io/8.8.8.8/org
    AS15169 Google Inc.
More details available at http://ipinfo.io/developers


We offer something similar for free. (One of our client deployments needed it, so we just made it free for everyone.)

https://www.dailycred.com/api/info.json

This returns the current requester's location, device, and language settings. Or you can just look for location for a specific ip like so:

https://www.dailycred.com/api/local.json?ip=67.188.232.131


Interesting. Do you know how the Accept Language header is calculated? I can imagine that it can also be used to track users as in [1]

1: https://panopticlick.eff.org/


It's in each browser request as a header - we just echo it back because it's not available to js.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html


It picked out a beautiful location for me. I really wish I were there, but I'm in an office park much further north, in Padova, which the one in the story actual nailed down to a few meters.

https://maps.google.com/maps?q=42.83330000000001,12.83330000...

By the way, Italy is amazingly beautiful isn't it! You can pretty much randomly pick a street view and without too much effort, find some interesting or beautiful scenery.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: