<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Prevent author impersonation in WordPress comments</title>
	<atom:link href="http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/</link>
	<description>WordPress Plugins, PHP Scripts, Tools, and Tutorials</description>
	<lastBuildDate>Fri, 06 Nov 2009 17:35:28 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: BadGirl45</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-498088</link>
		<dc:creator>BadGirl45</dc:creator>
		<pubDate>Fri, 23 Oct 2009 10:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-498088</guid>
		<description>There are certainly a number of biological differences between men and women. ,</description>
		<content:encoded><![CDATA[<p>There are certainly a number of biological differences between men and women. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BadGirl40</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-497949</link>
		<dc:creator>BadGirl40</dc:creator>
		<pubDate>Thu, 22 Oct 2009 10:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-497949</guid>
		<description>Where all content is aggregated for you, ready to be consumed. ,</description>
		<content:encoded><![CDATA[<p>Where all content is aggregated for you, ready to be consumed. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sooran</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-494799</link>
		<dc:creator>Sooran</dc:creator>
		<pubDate>Tue, 15 Sep 2009 10:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-494799</guid>
		<description>tancks.
This Post Helped me
Good Time</description>
		<content:encoded><![CDATA[<p>tancks.<br />
This Post Helped me<br />
Good Time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andol</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-484656</link>
		<dc:creator>andol</dc:creator>
		<pubDate>Mon, 27 Jul 2009 11:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-484656</guid>
		<description>that is bloody cool, i love that tip.</description>
		<content:encoded><![CDATA[<p>that is bloody cool, i love that tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rap dinle</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-484465</link>
		<dc:creator>rap dinle</dc:creator>
		<pubDate>Wed, 22 Jul 2009 17:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-484465</guid>
		<description>I have written a small plugin, so one doesn’t have to change any core files.</description>
		<content:encoded><![CDATA[<p>I have written a small plugin, so one doesn’t have to change any core files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-482710</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Wed, 08 Jul 2009 01:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-482710</guid>
		<description>This has been tested, and works, in the latest release of WordPress - 2.8

(The code you look for has changed a bit, but should be easy to find near the top of the file)</description>
		<content:encoded><![CDATA[<p>This has been tested, and works, in the latest release of WordPress &#8211; 2.8</p>
<p>(The code you look for has changed a bit, but should be easy to find near the top of the file)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wordpress professionals</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-482469</link>
		<dc:creator>wordpress professionals</dc:creator>
		<pubDate>Fri, 03 Jul 2009 05:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-482469</guid>
		<description>Is this working for wp 2.8 ? I am gonna check and will update here if it does not. I believe it should

Thanks</description>
		<content:encoded><![CDATA[<p>Is this working for wp 2.8 ? I am gonna check and will update here if it does not. I believe it should</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: top Wordpress Plugins</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-482468</link>
		<dc:creator>top Wordpress Plugins</dc:creator>
		<pubDate>Fri, 03 Jul 2009 05:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-482468</guid>
		<description>great plugins, that one must have. Appreciate them</description>
		<content:encoded><![CDATA[<p>great plugins, that one must have. Appreciate them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sajid</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-476767</link>
		<dc:creator>Sajid</dc:creator>
		<pubDate>Tue, 12 May 2009 07:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-476767</guid>
		<description>Great for OEM author&#039;s. Nice i also try this. Thanks for sharing with us.</description>
		<content:encoded><![CDATA[<p>Great for OEM author&#8217;s. Nice i also try this. Thanks for sharing with us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boilr</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-476691</link>
		<dc:creator>boilr</dc:creator>
		<pubDate>Mon, 11 May 2009 02:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-476691</guid>
		<description>nice hack/code.

how would i add a back button to the error message to help commenters try to comment again. as is, just brings up an error page with the message.

also, is it possible to show the message without revealing the location of the wp_comments_post file?

thanks</description>
		<content:encoded><![CDATA[<p>nice hack/code.</p>
<p>how would i add a back button to the error message to help commenters try to comment again. as is, just brings up an error page with the message.</p>
<p>also, is it possible to show the message without revealing the location of the wp_comments_post file?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ListenUp</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-474015</link>
		<dc:creator>ListenUp</dc:creator>
		<pubDate>Thu, 02 Apr 2009 03:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-474015</guid>
		<description>Fantastic. Thanks. Was having trouble with some funny guys at my site using admin (that&#039;s me) to reply to other people visiting the site. Best part is it doesn&#039;t allow variants of the name say admin such as Admin or AdMin etc.
Super stuff. Thanks. Works for 2.7 Wordpress by the way.</description>
		<content:encoded><![CDATA[<p>Fantastic. Thanks. Was having trouble with some funny guys at my site using admin (that&#8217;s me) to reply to other people visiting the site. Best part is it doesn&#8217;t allow variants of the name say admin such as Admin or AdMin etc.<br />
Super stuff. Thanks. Works for 2.7 Wordpress by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-469890</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Mon, 23 Feb 2009 04:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-469890</guid>
		<description>This code has been tested in the latest release of WordPress (2.7.1)</description>
		<content:encoded><![CDATA[<p>This code has been tested in the latest release of WordPress (2.7.1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brokakeroko</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-461045</link>
		<dc:creator>Brokakeroko</dc:creator>
		<pubDate>Mon, 20 Oct 2008 20:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-461045</guid>
		<description>I like your site. Brokakeroko</description>
		<content:encoded><![CDATA[<p>I like your site. Brokakeroko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ipstenu</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-460720</link>
		<dc:creator>Ipstenu</dc:creator>
		<pubDate>Fri, 17 Oct 2008 15:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-460720</guid>
		<description>I heavily cribbed from both you and Marco Luthe to make this plugin. It seems to be working right now, though I&#039;m sure someone could hack it:

&lt;code&gt;function wp_prevent_imposters( $commentdata){

// get list of user (display) names for blog
global $wpdb;
$valid_users = (array)$wpdb-&gt;get_results(&quot; SELECT display_name, user_email FROM &quot; . $wpdb-&gt;prefix . &quot;users&quot;);

global $userdata;
get_currentuserinfo();

// get email of current user
$logged_in_email =  $commentdata[&#039;comment_author_email&#039;];
$logged_in_name  =  $commentdata[&#039;comment_author&#039;];

// see if the comment author matches an existing author
$found_match = FALSE;
foreach ($valid_users as $va) {
  if (trim($va-&gt;display_name) != &#039;&#039;) {
    if (strtolower($va-&gt;display_name) == strtolower($logged_in_name)) {
      $found_match = TRUE;
      break;
    }
  }
  if (trim($va-&gt;user_email) != &#039;&#039;) {
    if (strtolower($va-&gt;user_email) == strtolower($logged_in_email)) {
      $found_match = TRUE;
      break;
    }
  }
}

// if commenter is not logged in, but match was found, block the comment
  if ($found_match == TRUE) {
    wp_die( __(&#039;You cannot post using the name or email of a registered author.&#039;) );
  }
  else {
    return $commentdata;
  }

}

add_filter(&#039;preprocess_comment&#039;, &#039;wp_prevent_imposters&#039;);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I heavily cribbed from both you and Marco Luthe to make this plugin. It seems to be working right now, though I&#8217;m sure someone could hack it:</p>
<p><pre><code>function wp_prevent_imposters( $commentdata){

// get list of user (display) names for blog
global $wpdb;
$valid_users = (array)$wpdb-&gt;get_results(" SELECT display_name, user_email FROM " . $wpdb-&gt;prefix . "users");

global $userdata;
get_currentuserinfo();

// get email of current user
$logged_in_email =  $commentdata['comment_author_email'];
$logged_in_name  =  $commentdata['comment_author'];

// see if the comment author matches an existing author
$found_match = FALSE;
foreach ($valid_users as $va) {
  if (trim($va-&gt;display_name) != '') {
    if (strtolower($va-&gt;display_name) == strtolower($logged_in_name)) {
      $found_match = TRUE;
      break;
    }
  }
  if (trim($va-&gt;user_email) != '') {
    if (strtolower($va-&gt;user_email) == strtolower($logged_in_email)) {
      $found_match = TRUE;
      break;
    }
  }
}

// if commenter is not logged in, but match was found, block the comment
  if ($found_match == TRUE) {
    wp_die( __('You cannot post using the name or email of a registered author.') );
  }
  else {
    return $commentdata;
  }

}

add_filter('preprocess_comment', 'wp_prevent_imposters');
</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Luthe</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-460412</link>
		<dc:creator>Marco Luthe</dc:creator>
		<pubDate>Tue, 14 Oct 2008 17:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-460412</guid>
		<description>Thanks for the inspiration! I have written a small plugin, so one doesn&#039;t have to change any core files.

http://www.saphod.net/2008/10/14/how-to-prevent-commenters-from-using-your-email/</description>
		<content:encoded><![CDATA[<p>Thanks for the inspiration! I have written a small plugin, so one doesn&#8217;t have to change any core files.</p>
<p><a href="http://www.saphod.net/2008/10/14/how-to-prevent-commenters-from-using-your-email/" rel="nofollow">http://www.saphod.net/2008/10/14/how-to-prevent-commenters-from-using-your-email/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-249691</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Sat, 05 Apr 2008 23:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-249691</guid>
		<description>&lt;b&gt;Tracey&lt;/b&gt;: That is a good idea. I just made a modification to the code.

I also tested to see if this modification will work in WordPress 2.5, and indeed it does. :)</description>
		<content:encoded><![CDATA[<p><b>Tracey</b>: That is a good idea. I just made a modification to the code.</p>
<p>I also tested to see if this modification will work in WordPress 2.5, and indeed it does. <img src='http://www.dagondesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tracey</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-248224</link>
		<dc:creator>Tracey</dc:creator>
		<pubDate>Wed, 02 Apr 2008 23:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-248224</guid>
		<description>How would you tweak this to prevent someone inserting a registered user&#039;s email address instead of their own?

For example, my site uses gravatars but a user could &#039;impersonate&#039; someone else if they know that person&#039;s email, at which point the gravatar will display for a user who may not have made the comment.

Hope this makes sense!</description>
		<content:encoded><![CDATA[<p>How would you tweak this to prevent someone inserting a registered user&#8217;s email address instead of their own?</p>
<p>For example, my site uses gravatars but a user could &#8216;impersonate&#8217; someone else if they know that person&#8217;s email, at which point the gravatar will display for a user who may not have made the comment.</p>
<p>Hope this makes sense!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tommi</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-186313</link>
		<dc:creator>tommi</dc:creator>
		<pubDate>Mon, 25 Feb 2008 22:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-186313</guid>
		<description>Nice hack, great explanation!</description>
		<content:encoded><![CDATA[<p>Nice hack, great explanation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ekinturkmen</title>
		<link>http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/comment-page-1/#comment-69612</link>
		<dc:creator>ekinturkmen</dc:creator>
		<pubDate>Fri, 03 Aug 2007 05:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/prevent-author-impersonation-in-wordpress-comments/#comment-69612</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
