3 ms·
Rob wanted geolocation without actually having to pay for it Rather than abusing the resources of a company which you have no intentions of doing business with
by patio11 17y ago
Rob wanted geolocation without actually having to pay for it
Rather than abusing the resources of a company which you have no intentions of doing business with (even one which is fairly odious), you could go with one of the free solutions for this.
Here's a GPL geolocation database for you. If you're capable of tying your shoelaces in web development, the rest should be academic.
http://www.maxmind.com/app/geolitecity http://www.maxmind.com/app/geolitecity
P.S. I largely like the free software movement. One of the core components of it is that we are not thieves. I sort of bristle when I see folks confusing the two. For my fellow shoestring budget developers here, when you see a submission offering something for free-as-in-beer, could you please do a quick sanity check "Does this submission advocate getting free stuff by stealing it?" and, if the answer is yes, NOT upvote it?
- paulgb 17y agoI think the author just meant to explain the nifty javascript trick and as a warning to developers who might consider data transfered by a javascript include to be safe. At least I hope he (Rob) is not actually using this method on a real site. edit: confirming my suspicions, this just popped up on the site: "This is a security example, guys. At least I hope nobody’s using this in the real world."
- bmcleod 17y agoSomeone didn't read the about page. Michelle's a she. Apart from that, while there are much better options available now, for a period the adult companies were sinking huge portions of their budgets into keeping that geolocation cutting edge. Getting as close as possible to a person's actual location is going to make ads like these much more convincing after all.
- paulgb 17y ago> Someone didn't read the about page. Michelle's a she. Thanks for pointing that out. I ignorantly assumed the author was male. I edited my post. > Apart from that, while there are much better options available now... interesting, I didn't realize that. I guess it's another example of adult entertainment pushing technology forward.
- gojomo 17y agoIt's free to use, but not "GPL". Here's the actual license: http://geolite.maxmind.com/download/geoip/database/LICENSE.txt http://geolite.maxmind.com/download/geoip/database/LICENSE.t...
- lucumo 17y ago> Here's a GPL geolocation database for you. (...) http://www.maxmind.com/app/geolitecity http://www.maxmind.com/app/geolitecity Which is a good suggestion. Especially so since it seems to be the exact database that AFF is using...
- quickpost 17y agoYou can also do it with two lines of Javascript using Google's AJAX API: http://labs.mudynamics.com/2009/04/03/geoip-tracking-with-google-apis/ http://labs.mudynamics.com/2009/04/03/geoip-tracking-with-go... Official Docs here: http://code.google.com/apis/ajax/documentation/#ClientLocation http://code.google.com/apis/ajax/documentation/#ClientLocati...