whois interface

02/06/05 15:20:48 * *

'.htmlspecialchars($c).''; } $mode = (isset($_GET['mode']))?$_GET['mode']:"whois"; $ip = (isset($_GET['ip']))?$_GET['ip']:"";

$disc= '

This is an interface to the Linux/Debian/Woody whois(1) program.
For questions, etc. please mail jdittmer@ppp0.net

<

div style="color:red;"> Please DO NOT ABUSE this interface, especially don\'t do mass lookups. The IPs are logged by the web server.
The answer on this page will be delayed for 1-10 seconds to prevent this.

'.htmlspecialchars($c).''; } $mode = (isset($_GET['mode']))?$_GET['mode']:"whois"; $ip = (isset($_GET['ip']))?$_GET['ip']:""; $disc= '
This is an interface to the Linux/Debian/Woody whois(1) program.
For questions, etc. please mail jdittmer@ppp0.net
Please DO NOT ABUSE this interface, especially don\'t do mass lookups. The IPs are logged by the web server.
The answer on this page will be delayed for 1-10 seconds to prevent this.

'; if (!empty($ip)) { print "

whois answer for $ip

"; print $disc; flush(); sleep(rand(1,10)); $ip = escapeshellarg($ip); if ($mode == "whois") { jdi_pre(`whois $ip`); } } else { // empty($ip) print "

No ip found

"; print $disc; ?>

Page 1 / 1
Show other versions of this story

Attached file(s):

Add Comment


(will be hidden)

very nice nice okay not so okay bad awful
Text:

Your IP address will be recorded