From cb465c6f511d63b5445a640735295de967126e2c Mon Sep 17 00:00:00 2001 From: Jason Fesler Date: Wed, 2 Apr 2014 19:48:27 -0700 Subject: Imported without history from https://falling-sky.googlecode.com/svn/trunk/mod_ip revision 1511 --- README | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..d7a6b8c --- /dev/null +++ b/README @@ -0,0 +1,26 @@ + This module reports the IP the user came from, as a JSONP response. + GET requests required; CGI style arguments are permitted. + + callback=[name] to call a function name of your choosing + size=[number] to bad the http data portion of the response. (Does not attempt to offset header response) + asn=1 to do ASN lookups + testip=IPADDRESS to test a specific IP address + + If the callback is "?", it will output to the screen (calling it "callback"). + Any other, and a JSON mime type is used instead. + +Example: + + http://test-ipv6.com/ip/?callback=hello&testip=2001:470:1:18::2&asn=1 + + +Returns: + hello({"ip":"2001:470:1:18::2","type":"ipv6","subtype":"","via":"","asn":"6939","asn_name":"HURRICANE - Hurricane Electric, Inc.","asnlist":"6939","padding":""}) + +To install: + + ./configure + make + sudo make install + cat README.configuration + -- cgit v1.2.3