here's a little script i coded, uses Home :: IPInfoDB so you need to register there to get a free api key 🙂
features: hostname/ip/country/city/flags (included)
demo: http://g0st.tk/GeoIP/? http://g0st.tk/GeoIP/?_h=google.com http://g0st.tk/GeoIP/?_i=209.85.231.104
parameters: _h = domain/hostname _i = ip address
if no parameters provided uses x-forwarded in case of proxy, and remote-addr, flags images included, enjoy 🙂 http://ins.uk.to/GeoIP.zip