DEAD CODE
This was once useful, but as freegeoip.net is dead and the code hasn't been updated for years, it's most likely interesting as a snapshot of PHP code in time (even some time ago).
Please do not use for any real pratical, serious or production-like uses.
IP Info
Simple utility to display public information retrieved from the ip number of a visitor.
Future improvements
- IPv6 support
Requirements
This webapp was written in PHP 5.4.x. It will probably run under any PHP 5.x version. Curl and SimpleXML support in PHP is required.
Resources
This webapplication utilizes the follow resources:
- http://freegeoip.net/static/dev.html is used to find country, region and city for the ip number.
- The flag icons are from http://www.famfamfam.com/lab/icons/flags/.
- The flag icons are "hot linked" from http://github.com/ directly.
- Mustache.php is copied from https://github.com/bobthecow/mustache.php - This version is an old-single file version, not the current.
License
All original code provided by in this project is licensed under the MIT license.
Copyright (c) 2013 Flemming Mahler
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ALIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.