Location of Commenter This is a greasemonkey script that retrieves city (state) country information from http://www.hostip.info/ and adds it next to the IP address for comments that have IP address displayed
( Read more... )
They have plenty of APIs. I use it with PHP all the time and it works reasonably well for the free version. But you could setup your own host for it since they seem to be having issues with speed (and might be throttling stuff because of scripts like this).
If you don't pass in an ip it will use the ip that the request came in from and give you a message about passing in the ip. Yay for 1 minute of copying a file and doing minor tweaks to it.
Might be better to come up with some way of building an array of ip addresses and then having it do a bulk request (I'd need to modify by script but it's no big deal) so it only has to make one remote call since each sequencial request takes time and could effect page load time.
Comments 34
Reply
Reply
Reply
Reply
Thanks for the post and have a wonderful birthday! October is by far the best month in which to be born!
Reply
Reply
http://www.maxmind.com/app/ip-location
They have plenty of APIs. I use it with PHP all the time and it works reasonably well for the free version. But you could setup your own host for it since they seem to be having issues with speed (and might be throttling stuff because of scripts like this).
Reply
You can try using this... you won't have to do nearly as much parsing...
http://wetnun.net/ip_info.php?ip=64.56.205.72
If you don't pass in an ip it will use the ip that the request came in from and give you a message about passing in the ip. Yay for 1 minute of copying a file and doing minor tweaks to it.
Might be better to come up with some way of building an array of ip addresses and then having it do a bulk request (I'd need to modify by script but it's no big deal) so it only has to make one remote call since each sequencial request takes time and could effect page load time.
Reply
Leave a comment