/    Sign up×
Community /Pin to ProfileBookmark

Determing Location from IP

I’d like to determine a users location from their IP, probably no more detailed than country/state. I’ve searched the forums and the only thing I’ve been able to find is a link to this site: [url]http://www.maxmind.com/app/geoip_country[/url] Although it’s pretty pricy. Does anyone know of a way I’d be able to do this myself?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@LuboxNov 13.2006 — Well, you can do it yourself by using maxmind..

They have a PHP-script ready for you as well.

Edit: they have a free version too?

If you mean creating something from scratch, I doubt you'll be able to do it yourself, but maybe you are a clever dude ?
Copy linkTweet thisAlerts:
@EbolaauthorNov 13.2006 — The PHP script they supply requires a license key, which I assume you have to buy. Also for their trial account the Terms Of Use says you can only use it for credit card validation.
Copy linkTweet thisAlerts:
@bokehNov 13.2006 — The ip_2_country database is free.
Copy linkTweet thisAlerts:
@EbolaauthorNov 13.2006 — I can't seem to find it, where is it?
Copy linkTweet thisAlerts:
@bokehNov 13.2006 — I can't seem to find it, where is it?[/QUOTE]http://www.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
×

Success!

Help @Ebola spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...