mod_whois 0.1

mod_whois module maps WHOIS queries into standard HTTP requests.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
The Apache License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Alexander Mayrhofer
HOMEPAGE:
sourceforge.net
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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

Configure

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

requirements

#Apache module #maps WHOIS queries #HTTP requests #mod_whois #Apache #module #maps

Add your review!

SUBMIT