Not sure if this is the right SE site. I figured this question doesn't belong on SO, but if you think it doesn't belong here either, I apologize.
I've been looking into determining the location, specifically the state, of a user accessing my website. One of the options I've known about for a while is the GeoIP City Database, however this isn't the most cost effective solution and I'm cheap so I was looking for a less expensive way. Something that occurred to me was that my state was in the public hostname assigned to me by Comcast:
(Dash Separated IP).hsd1.ma.comcast.net
Could it be possible that other ISPs follow this same pattern of inserting the state abbreviation into their users' hostnames? I've been looking around for a list of hostnames for other ISPs, but I haven't found anything. Can anyone verify that this holds true for other major ISPs?
Edit: Is your state in your hostname? Is it abbreviated or written out? Is it in it's own subdomain?
After some more digging, I discovered that Verizon FiOS customers have location data in their hostnames. It seems that the general pattern that they follow is:
static-(Dash Separated IP).(City Abbreviation)(State Abbreviation).fios.verizon.net
So for example a FiOS customer in boston would have a hostname that looks like:
static-(Dash Separated IP).bstnma.fios.verizon.net
I can extract a state from this, leading me to believe that there must be other ISPs that follow this pattern. Can anyone else confirm by checking if their hostname has their state in it?