Using the IP Addresses database - IP Address LookupIf you're going to be doing a lot of Geocoding or IP Address Lookups, please take a feed instead which will preserve both our bandwidth and your bandwidth.
Paste the following code into your HTML to get a country flag of the ip address. The database is significantly more accurate (it ought to be 100%) for countries than for cities. It would be nice if y'all would make the flag a link to the www.hostip.info home page (http://www.hostip.info/) so they can come by if they're interested - it'll only benefit you in the long run. After all, the results get more accurate as more visitors submit their IP addresses!
Flag of visitor's location: <A HREF="http://www.hostip.info"> <IMG SRC="http://api.hostip.info/flag.php" BORDER="0" ALT="IP Address Lookup"></A> Flag of any IP address: <A HREF="http://www.hostip.info"> <IMG SRC="http://api.hostip.info/flag.php?ip=12.215.42.19" ALT="IP Address Lookup"></A>http://hostip.info/use.html