WordPress.org

Forums

Whois Lookup Plugin to Resolve a Commenter IP Address? (2 posts)

  1. Dan Poynor
    Member
    Posted 5 years ago #

    Is there currently a plugin that will resolve the i.p. address displayed on the Edit Comments page to a domain name?

    It might help one of my clients know when a competitor is posting a comment or asking a question on his blogs.

    We do see the commenters email address but that doesn't always reflect if they are commenting from a workplace network for example. Manually doing a whois lookup on an i.p. we've discovered a competitor is using different email addresses also.

    Thanks,
    DAN

  2. Dan Poynor
    Member
    Posted 5 years ago #

    I started creating a plugin using a filter function on the get_comment_author_IP hook.

    This replaces the usual output such as:

    <a href="edit-comments.php?s=98.230.220.99&mode=detail">98.230.220.99</a>

    with:

    <a href="edit-comments.php?s=c-98-230-220-99.hsd1.ca.comcast.net&mode=detail">c-98-230-220-99.hsd1.ca.comcast.net</a>

    which helps, but now clicking the link doesn't show multiple comments from the same ip address anymore.

    I'm trying to figure out how to get the output to instead read something like this:

    <a href="edit-comments.php?s=98.230.220.99&mode=detail">98.230.220.99</a><br />(c-98-230-220-99.hsd1.ca.comcast.net)

    Any thoughts on how I can do that appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic