mod_whois 0.1

mod_whois module maps WHOIS queries into standard HTTP requests.
mod_whois module maps WHOIS queries into standard HTTP requests.

After the "translation", the request can be processed by the usual mechanisms (mapping to static content, running CGI & PHP scripts, ...).

Compile & Install

apxs -i -a -c mod_whois.c


Most simplest configuration:

Listen 43

< VirtualHost *:43 >
WhoisProtocol On
< /VirtualHost >

Inbound whois queries will be mapped to the URI /cgi-bin/whois?query=,
with < query > properly quoted.

To change the mapping destination, add to your httpd.conf:

WhoisPrefix "GET /whois.php?searchstring="

(WhoisPrefix will have the whois query appended). You can not only map
queries to scripts, but also to static content:

WhoisPrefix "GET /whoisinfo/"

will make apache trying to retrieve /whoisinfo/bla if asked for "bla"
Attention: Be aware that if an 404 occurs, the client is presented with an ugly HTML error message (which, BTW will contain the mapped URI). So, if you map to static content, you may want to add e.g.

ErrorDocument 404 /whoisinfo/404hider.txt

(and an appropriate text error message) to your installation. You may always want to add an

ErrorDocument 500 /whoisinfo/kaputt.txt

In case your CGI fails (e.g. to connect to your backend database).

last updated on:
April 6th, 2006, 16:51 GMT
license type:
The Apache License 
developed by:
Alexander Mayrhofer
ROOT \ Internet \ HTTP (WWW)
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!

Add your review!