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

Your email address will not be published. Required fields are marked *