summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJason Fesler <jfesler@free.gigo.com>2014-04-02 19:48:27 -0700
committerJason Fesler <jfesler@free.gigo.com>2014-04-02 19:48:27 -0700
commitcb465c6f511d63b5445a640735295de967126e2c (patch)
tree4b2e5639c92e9e659bc234b07eefcaae031b501c /README
parente8e6401f8c7bb6ab64dbbcfc10618e792fcbd85b (diff)
downloadmod_ip-cb465c6f511d63b5445a640735295de967126e2c.tar.gz
mod_ip-cb465c6f511d63b5445a640735295de967126e2c.zip
Imported without history from https://falling-sky.googlecode.com/svn/trunk/mod_ip revision 15111.0
Diffstat (limited to 'README')
-rw-r--r--README26
1 files changed, 26 insertions, 0 deletions
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
+