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:
- Shows the hostname on join:
16:14 -!- cheesey_ [~7f000001@testchat.airwired.org] has joined #airwired
16:14 -!- cheesey_ is from localhost via cgi:irc - Shows the hostname in WHOIS:
16:34 [airwired] -!- cheesey_ [~7f000001@testchat.airwired.org]
16:34 [airwired] -!- actually : localhost
16:34 [airwired] -!- server : irc.airwired.org [Airwired UK Server]
16:34 [airwired] -!- End of WHOIS - Shows hostname in WHOWAS:
16:35 [airwired] -!- cheesey_ [~7f000001@testchat.airwired.org]
16:35 [airwired] -!- actually : localhost
16:35 [airwired] -!- was : I am bloody vengeance - Should just ignore things it doesn't understand rather than crashing horribly.
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.
