Marketing25 Mar 2009 06:20 am

External methods of getting Geo IP:

<script src=”http://promos.fling.com/geo/txt/city.php”></script>

OR

<script src=”http://promos.fling.com/geo/txt/location.php”></script>

OR

<script src=”http://j.maxmind.com/app/geoip.js”></script><script type=”text/javascript”><!– document.write(geoip_city()); // –></script>, <script type=”text/javascript”><!– document.write(geoip_region_name()); // –></script> </code>

OR

<script src=”http://www.google.com/jsapi” language=”javascript”></script><script language=”javascript”>if (google.loader.ClientLocation != null) {var gcity=google.loader.ClientLocation.address.city;var state=google.loader.ClientLocation.address.region;} else {
var gcity=’Sacramento’;
var state=’CA’;
}
</script>

need some extra JS to output gcity/state..

2 Responses to “Non-self-hosted methods of getting Geo IP”

  1. on 23 Sep 2009 at 9:16 pm corey

    Wow, one of the few affiliate blogs with real information! I didn’t now bout the Fling geoip script, thanks for sharing. Is that a permanent service from them, to people not even promoting “FACEBOOK OF SEX”?

  2. on 23 Sep 2009 at 9:26 pm foucist

    Pretty much.

    There’s also a google geo ip service too, I haven’t tried that out yet though.

Trackback this Post | Feed on comments to this Post

Leave a Reply

Security Code: