“Our logic is full of holes...
I can see the bubbles.”
Saturday 26th August, 2006
A Webchat utilities script for irssi. Is likely to be very buggy.

CGI:IRC tends to provide the IP of the originating HTTP connection in hex in the username field. This script checks to see whether the username is of the form expected and, if so, converts it to a decimal IP and reverse-resolves it where possible. It provides the following features:

It requires Net::DNS. In addition, please note that at this time the script makes a lookup every time a request is made; there is not yet any caching of DNS responses.

If the connection is being bounced through a proxy then the proxy IP will show up and not the originating IP. There is also no guarantee that an eight-digit hexadecimal ident comes from CGI:IRC, or is the actual IP. Any data produced by this script should be taken only as guidance.

by Rob Mitchelmore, 16:28 (anchor)