JSONIP Simple Alternative

JSONIP.com is simple yet brilliant.
it just response with an IP, in a JSON format, or JavaScript (for callback).

http://jsonip.com
or http://jsonip.com/?callback=aaa

this enables either mobile or web applications to use some more extensive information,
as part of analytics and track the IP, along with other parameters..

its so simple to generate the same result using a PHP script,
optionally wrapping it with callback.

this aside, the service is totally unprotected, and can be EASILY be used to inject JavaScript code,
at client-side.

for example:
http://jsonip.com/?callback=%3Cscript%3E(function(){alert(%22you%20suck%20as%20a%20service!%22);}())%3C/script%3Econsole.log

will generate:

<script>(function(){alert("you suck as a service!");}())</script>console.log({"ip":"87.126.103.21","about":"/about","Pro!":"http://getjsonip.com"})

ready to be executed..