![]() |
Free geo-ip for your website (test this)
I often see people asking for an easy free solution so here goes
p.s. because its free its not perfect but it also is alot less tasking on your server than most free methods exampe usage of below code http://ytmnd.webspacemania.com/freegeo/ Code:
|
Quote:
but I did go to the site and update the record for my IP :winkwink: Everyone should do that - it might make it worth using on bigger projects. If it doesn't get yours right click here www.hostip.info and you can change it for them. |
Quote:
|
Apparently it doesn't know San Diego either.
|
Quote:
|
doesn't work for me either :-/
"Hi, I'm Brooke i live in (Unknown City?) and i'm super horny" |
didnt work for me
|
I fixed it. Must need a lot of work.
|
Quote:
everyone should go to www.hostip.info and add their city to the list , its a user built databse |
its also got a cool plugin for firefox to show the city location of any link
like this http://www.hostip.info/images/firefox_scrnshot.gif |
nice job smokey, ill put it to use :)
|
New Castle, DE?? 301.68 miles off!
|
Thanks smokey, answered my ? directly. Although its extremely faulty. How many people got it right on the first visit with out correcting? I guess if its the only free method thats my only choice though, eh?
|
Quote:
didn't work for me, but I went to http://www.hostip.info/index.html and added my city to their list and now it works. |
Quote:
Thanks for the info smokey, I've worked on a couple solutions myself, but yours seems the easiest. I worked with the free version of GeoIPmax and the database version is horrible (took me forever to figure out a good index, and even then it was slow) and the binary version is decent. But I think the one smokey posted above the simplest for our end. BTW Smokey, would you be willing to verify some code (my zango removal tool (link to thread)) and post the results? |
I have their "script" and their free DB on my server
|
Quote:
The thing with most geo-ip services is the database is a few mb's so everytime someone hits your script your server has to look thru the db file.. this method is less taxing on your server |
Quote:
if people like, I'll open it up to all - it's geolite, so it's not 100%. Hey, if enough people are willing to subscribe at, say $1/10k lookups, I'll get the main, pretty darn accurate maxmind city database... |
(Unknow City) ... that's farrrrrrrrrr from here :P
|
Works for me in San Diego :)
|
Works for me!
|
Or even easier:
PHP Code:
Quote:
|
if people are not getting accurate results from hostip.info, the following should be better:
http://geo.corecoder.com/ to test your own ip, or http://geo.corecoder.com/?ip=xx.xx.xx.xx to test a specific one. If you want all data, not just the city, it can be found here: http://geo.corecoder.com/full?ip=xx.xx.xx.xx |
Quote:
|
it got me in canada but wrong city
|
| All times are GMT -7. The time now is 12:26 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123