Impostercide!

By default, WordPress does not enforce any kind of restrictions on the email address used by commenters. I'm actually quite surprised that to date no one has posted a comment to this site trying to masquerade as me, because they certainly could have done so before today.

To prevent this from ever happening, and to ensure that you, my dear readers, can sleep easy at night knowing that every comment on this site purporting to be from me really is from me, I have written Impostercide!

This plugin checks the email address submitted by a commenter against the list of registered users in the blog. If the email address is assigned to a registered user, this plugin then checks to see if the person attempting to comment is a signed-in user of the blog. If they are not, the comment is rejected with a stern rebuke.

So no more imposters pretending to be Skippy here (of which there were none to begin with...)!

Currently this plugin only checks for the first instance of a given email address in the registered user list. If you have multiple accounts, all with the same email address, you're going to have to ask me very politely to update the plugin to accomodate your bizarre usage patterns.

Many thanks to Mark for the catchy name!


26 Responses to Impostercide!

  1. 1518 Makki 2005-09-09 03:02:18

    Hey thanks for this. :)

  2. 1524 Mark J 2005-09-09 04:57:10

    Ha! I can't believe you used it!

  3. 1523 skippy 2005-09-09 11:31:06

    Sounds like a good Plug in to add to my sites, Pagan Students Espeshaly, due to the numbver of potential users for that

  4. 1525 Elfboy 2005-09-09 21:16:08

    What if I'm not a registered user and I want to leave a comment?

  5. 1530 skippy 2005-09-09 22:41:03

    Elfboy: there's no change in behavior if you're not a registered user, so long as you're not trying to use the email address of a registered user. As you can see, your comment came through just fine!

  6. 1582 Viper007Bond 2005-09-20 03:47:59

    Great idea for a plugin! *downloads and activates*

  7. 1867 skippy dot net » Impostercide 1.1 2005-11-02 00:44:08

    [...] I discovered a rather dreadful flaw in Impostercide: it was blocking trackbacks and pingbacks! [...]

  8. 1883 Bob 2005-11-02 13:46:09

    You say, "If you have multiple accounts, all with the same email address, you’re going to have to ask me very politely to update the plugin to accomodate your bizarre usage patterns." I've thought a lot over the years about what should constitute the unique identifier for a user account. I've come to believe that *in most cases* the user's email address should be their login. However, there should also be a unique auto-numbered identifier for the account. So, for example, a user record would look like this:

    UserID: Assigned by db or system, never seen by user
    UserEmail: may be set or changed by user
    UserScreenName: may be set or changed by user
    UserPassword: may be set or changed by user

    Here's what I think this solves:

    1. Users don't forget their email address (unlike login).
    2. Makes it impossible to create duplicate accounts.
    3. Makes it possible to add some sort of "password reminder" tool per whatever security standards you wish to use. It emails them whatever info you wish if their email address matches an account.
    4. Since email addresses really are unique, you don't have to worry about the issue of two users having the same login. Probably you would want to continue constraining as unique the screen names. My point is that since email addresses are unique in the world, you can leverage the benefit of that uniqueness benefit in your own world.

  9. 1884 skippy 2005-11-02 14:36:29

    I agree that people don't tend to forget their email addresses; and email-based logins are certainly something to consider.

    In the context of WordPress, though, there may well be valid reasons to support multiple login names that use the same email address in the profile. As an author on a WordPress blog, you can elect to receive email notification whenever someone comments on one of your posts. There may be instances where one would like to post an item using a different name, but still receive the comment notification at your primary email address... The current mechanism allows for this without requiring any kind of mail aliases.

  10. 1889 Bob 2005-11-04 20:29:19

    I totally agree that there are cases where email address should not be used for login, and probably WordPress is one of them. With Impostercide you stumbled upon one of the many difficulties with multiple email addresses in the system, and attempting to do an account verification accordingly.

    I haven't looked at your code, but when faced with multiple email addresses, it should be easy enough to iterate through them all with an incrementing flag counter, eg.:

    intFlag = 0;

    while ( i=0; i

  11. 1890 Bob 2005-11-04 20:30:40

    oops, WordPress didn't like my posted code block.

  12. 1815 Bumpkinisims » Credits 2005-11-08 18:48:04

    [...] Plugins: A list of the plugins I use will be posted here. myMooMus version 1.23 Gravatar Iimage Browser Impostercide Now Reading JÄÅ Preview AJAX Shoutbox WP-Amazon Word Press Contact Form WP Data Base Backup WP Grins [...]

  13. 1938 Ozh 2005-11-18 13:34:59

    (Skippy, since this post is the first result on google when looking for "impostercide", you should probably update the download link to the latest version)

  14. 1939 planetOzh 2005-11-18 13:42:20

    Note to my Other Self

    Someone posting with my nick and email. WTF.

    ...

  15. 2004 Poromenos 2005-11-26 01:27:00

    It doesn't work for me. I upload, activate, and I can still post as "Poromenos" (logged off, of course). I don't care about users using my email, emails don't show up anywhere anyway. I want to prevent them from using my name, how do I do that?

  16. 2010 jtnez 2005-11-26 04:45:28

    So what is the URL to the latest version? Is it still 1.0?

  17. 2011 jtnez 2005-11-26 05:22:31

    My apologies.

    I found the latest version on this page: http://www.skippy.net/blog/category/wordpress/plugins/

    Sorry for the confusion. Thanks for the plugin!

  18. 2013 Poromenos 2005-11-26 15:54:20

    Interesting. The new version works great, thanks a lot. You might want to link to it from this page because people might look for it here.

    --
    Poromenos
    http://porocrom.poromenos.org

  19. 2249 Nicolai 2005-12-30 02:15:16

    Excellent, thank you!

  20. 2433 Null 2006-01-06 00:04:09

    Hmm I want to screen the names only, not the email. Is this duable with this pluging? if not a request:

    I admin the option to choose between:
    1- Check email
    2- Check user names

    Also a topic here:
    http://wordpress.org/support/topic/55020

    Thx

    Greetz

  21. 2440 skippy 2006-01-06 13:31:14

    Null: you can edit the code to remove any of the checks you deem necessary. The source is fairly well commented, so it should be obvious which bits to remove.

  22. 2430 Null 2006-01-06 13:43:24

    Ah I see ok thx

    Hmmm will this also work with the wordspew plugin? It's a shoutbox where quests can post too. A guest can change his name in the name box. Will this plugin check this too? And what if someone is online AND using a verified guest name and another person want to type something and enter also that name, will the script check these temp names to?? Cause if Jack has signed out, the name Jack is free for all again, but if guest Jack is online someone else cannot call himself jack too...

    The pluging can be found here:
    http://blog.jalenack.com/ajax/

    Maybe some adjustment would be needed to make it work with it...

    Further on GREAT MOD, why isn't it on the wp page?

  23. 2419 skippy 2006-01-06 18:15:31

    Impostercide will not work with WordSpew without some tinkering, none of which I am going to do. Impostercide was written specifically for WordPress comments, and only checks comments.

  24. 2449 Null 2006-01-06 23:26:53

    Hi,

    So no izi fix, well no problem, I was just wondering if it would work on plugins too.

    Still a great plugin, a must have!

  25. 2757 LJones 2006-02-11 21:26:37

    I tried to find this plugin via http://www.skippy.net/blog/plugins/ but it seems to not be the most recent version. Most of the other links there point to multiple versions. Perhaps this one should be updated.

  26. 3369 Rising Above Mediocrity 2006-05-24 19:10:51

    On juvenile commenting behavior....

    If you glance over to the “Recent Comments” segment of the sidebar, you may notice a few unusual comments. I’ve had a jackass (or maybe multiple jackasses) attempting to disturb or malign me. It’s one thing to insult me, but i...

Leave a Reply



About

Brewer philosopher.

User