mikeage.net Logo
mikeage.net/2006/11/21/whois-wordpress-plugin/

mikeage.net @ י"ג אייר תשס"ח

Whois Wordpress Plugin

Yes, yet another WordPress plugin!

This one allows you to add additional "whois" servers to the listing shown in the comment display screen. It's also quite useful (as in my case) if you have a web gateway to search through logs, which I use to help block spammers.

The plugin comes with default entries to add APNIC, whois.ws, and LAPNIC searches, in addition to the default ARIN search. Simply add a path that can perform a whois query with the IP appended via the configuration screen to add a new query.

In order for the list to appear at all, you have to modify a few WP files (since I can't add a filter / action for this). Edit the files:

  • wp-admin/edit-comments.php
  • wp-admin/moderation.php
  • wp-content/plugins/akismet/akismet.php (only if you use the akismet plugin)

and add <?php if (function_exists('print_whois')) { print_whois(get_comment_author_IP()); } ?> right after the existing printing of comment_author_IP().

You can download Whois from the whois plugin section of the Software section.

Leave a Reply

Verification Image

Please type the letters you see in the picture. This field is case-insensitive, and valid letters are A-Z (no numbers)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Quicktags:

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
New Images
Visitors
Clustermap
Blogroll

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 09:11 CST