Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active March 15, 2016 01:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save irazasyed/4121247 to your computer and use it in GitHub Desktop.
Save irazasyed/4121247 to your computer and use it in GitHub Desktop.
HTML: Geo Redirection Script using MaxMind's GeoIP API

Geo Redirection Script using GeoIP API JS

NOTICE: Moved to Git Repo with another version. Will keep it updated there!

@jdcauley
Copy link

I deleted my comment as I was completely wrong. I just hadn't registered my url with maxmind.

@coliff
Copy link

coliff commented Mar 3, 2014

Hi @irazasyed FYI - the script URL has since changed and is now:
//js.maxmind.com/js/country.js

Ref: http://dev.maxmind.com/geoip/legacy/javascript/

@irazasyed
Copy link
Author

@coliff Hi, Thanks for the info. It seems like it requires user to register their domain to use their service!

Edit: I've updated with another URL which does not require the user to register. Tested and optimised the code as well.

@irazasyed
Copy link
Author

Update: Moved to Git Repo with another version. Will keep it updated there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment