<?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: Wanted: Akismet Warning Plugin</title>
	<atom:link href="http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/</link>
	<description>Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it&#039;s largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff</description>
	<lastBuildDate>Fri, 10 May 2013 11:50:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Todays Spammers - Page 2 - Net Builders</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-510881</link>
		<dc:creator>Todays Spammers - Page 2 - Net Builders</dc:creator>
		<pubDate>Sat, 25 Sep 2010 00:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-510881</guid>
		<description><![CDATA[[...] are too many spam comments to justify the time it takes to review the spam bin.  I came across a solution which is to add a hack to the exit() line in the PHP code.   This would notify the commenter that [...]]]></description>
		<content:encoded><![CDATA[<p>[...] are too many spam comments to justify the time it takes to review the spam bin.  I came across a solution which is to add a hack to the exit() line in the PHP code.   This would notify the commenter that [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XiAP Design: Web &#38; Graphic design &#124; WordPress &#38; MacOSX Themes &#187; Antispam Collateral Condolences</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-98655</link>
		<dc:creator>XiAP Design: Web &#38; Graphic design &#124; WordPress &#38; MacOSX Themes &#187; Antispam Collateral Condolences</dc:creator>
		<pubDate>Wed, 28 Feb 2007 09:15:59 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-98655</guid>
		<description><![CDATA[[...] is an interesting plugin I found by chance in reading Eric Meyer&#8217;s blog. So what does it do?  This plugin will notify commenters when their comments are [...]]]></description>
		<content:encoded><![CDATA[<p>[...] is an interesting plugin I found by chance in reading Eric Meyer&#8217;s blog. So what does it do?  This plugin will notify commenters when their comments are [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Graf</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88538</link>
		<dc:creator>Alexander Graf</dc:creator>
		<pubDate>Tue, 06 Feb 2007 07:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88538</guid>
		<description><![CDATA[Nice Mark, I didn&#039;t think this was possible. Clean solution, I like it.]]></description>
		<content:encoded><![CDATA[<p>Nice Mark, I didn&#8217;t think this was possible. Clean solution, I like it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88382</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 05 Feb 2007 20:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88382</guid>
		<description><![CDATA[...and another test of the plugin.]]></description>
		<content:encoded><![CDATA[<p>&#8230;and another test of the plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88381</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 05 Feb 2007 20:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88381</guid>
		<description><![CDATA[Just a quick test here to see if I get the warning on a legitimate comment.]]></description>
		<content:encoded><![CDATA[<p>Just a quick test here to see if I get the warning on a legitimate comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88372</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 05 Feb 2007 19:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88372</guid>
		<description><![CDATA[Awesome, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/?caught_as=spam#comment-88364&quot; rel=&quot;nofollow&quot;&gt;Mark&lt;/a&gt;!  Thank you!  I just tested it with some choice bits from my Akismet queue and it works great.  I went with the JS popup method, since it&#039;s the most obvious.  I bow down before your PHP and WP sagacity.]]></description>
		<content:encoded><![CDATA[<p>Awesome, <a href="http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/?caught_as=spam#comment-88364" rel="nofollow">Mark</a>!  Thank you!  I just tested it with some choice bits from my Akismet queue and it works great.  I went with the JS popup method, since it&#8217;s the most obvious.  I bow down before your PHP and WP sagacity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Jaquith</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88364</link>
		<dc:creator>Mark Jaquith</dc:creator>
		<pubDate>Mon, 05 Feb 2007 19:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88364</guid>
		<description><![CDATA[&lt;a href=&quot;http://txfx.net/code/wordpress/antispam-collateral-condolences/&quot; rel=&quot;nofollow&quot;&gt;Try this&lt;/a&gt;!

That was actually the sole reason that I put that hook (&lt;code&gt;comment_post_redirect&lt;/code&gt;) in there... just never got around to writing the plugin to use it.

Default notification is JS &lt;code&gt;alert()&lt;/code&gt; because that&#039;ll work most generally, but I included an alternative notification method that you can use if your theme has the &lt;code&gt;comment_form&lt;/code&gt; hook.]]></description>
		<content:encoded><![CDATA[<p><a href="http://txfx.net/code/wordpress/antispam-collateral-condolences/" rel="nofollow">Try this</a>!</p>
<p>That was actually the sole reason that I put that hook (<code>comment_post_redirect</code>) in there&#8230; just never got around to writing the plugin to use it.</p>
<p>Default notification is JS <code>alert()</code> because that&#8217;ll work most generally, but I included an alternative notification method that you can use if your theme has the <code>comment_form</code> hook.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88355</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 05 Feb 2007 18:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88355</guid>
		<description><![CDATA[It does help, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88204&quot; rel=&quot;nofollow&quot;&gt;Alexander&lt;/a&gt;---thanks!  I&#039;m wondering if a redirect or a &lt;code&gt;die&lt;/code&gt; at that point is a good idea, though.  It would prevent the next few lines from executing, and those look like cleanup actions.  I think.  Then again, I&#039;m confused by lines 213-214, which invoke a &lt;code&gt;die&lt;/code&gt; under certain conditions, only I don&#039;t know how likely it is to see those conditions.

If the &lt;code&gt;die&lt;/code&gt; on 213 isn&#039;t often triggered, then I&#039;d probably drop a conditional right after line 216 (&lt;code&gt;akismet_delete_old();&lt;/code&gt;) in order to make this happen.  I think a plain old &lt;code&gt;die&lt;/code&gt; would be good enough for me at the moment, considering that redirects are kind of dark-gray magic to me.  (I get the general principle, but the specifics of their handling in WP bedevil me.)

&lt;a href=&quot;http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88225&quot; rel=&quot;nofollow&quot;&gt;Gerard&lt;/a&gt;, I don&#039;t think this would be that big a flag, since I&#039;m not sending anyone any e-mail.  I&#039;m just throwing what is, in effect, an error page back at the web browser.  I suppose that I could eventually get fancy and return &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html&quot; rel=&quot;nofollow&quot;&gt;an HTTP error code&lt;/a&gt; and page, maybe a 417.

Sounds like a generally good idea, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88258&quot; rel=&quot;nofollow&quot;&gt;Amber&lt;/a&gt;, except the way the Akismet WP plugin is written, there are a few &lt;code&gt;exit&lt;/code&gt;s scattered about, and identifying just the right one is a bit tricky for me.  I think I&#039;ll probably do something based on Alexander&#039;s suggestion.]]></description>
		<content:encoded><![CDATA[<p>It does help, <a href="http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88204" rel="nofollow">Alexander</a>&#8212;thanks!  I&#8217;m wondering if a redirect or a <code>die</code> at that point is a good idea, though.  It would prevent the next few lines from executing, and those look like cleanup actions.  I think.  Then again, I&#8217;m confused by lines 213-214, which invoke a <code>die</code> under certain conditions, only I don&#8217;t know how likely it is to see those conditions.</p>
<p>If the <code>die</code> on 213 isn&#8217;t often triggered, then I&#8217;d probably drop a conditional right after line 216 (<code>akismet_delete_old();</code>) in order to make this happen.  I think a plain old <code>die</code> would be good enough for me at the moment, considering that redirects are kind of dark-gray magic to me.  (I get the general principle, but the specifics of their handling in WP bedevil me.)</p>
<p><a href="http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88225" rel="nofollow">Gerard</a>, I don&#8217;t think this would be that big a flag, since I&#8217;m not sending anyone any e-mail.  I&#8217;m just throwing what is, in effect, an error page back at the web browser.  I suppose that I could eventually get fancy and return <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html" rel="nofollow">an HTTP error code</a> and page, maybe a 417.</p>
<p>Sounds like a generally good idea, <a href="http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88258" rel="nofollow">Amber</a>, except the way the Akismet WP plugin is written, there are a few <code>exit</code>s scattered about, and identifying just the right one is a bit tricky for me.  I think I&#8217;ll probably do something based on Alexander&#8217;s suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Johnson</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88343</link>
		<dc:creator>Tom Johnson</dc:creator>
		<pubDate>Mon, 05 Feb 2007 17:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88343</guid>
		<description><![CDATA[I&#039;m interested in the same plugin/hack. If you find something that works, please let me know.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in the same plugin/hack. If you find something that works, please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amber</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88258</link>
		<dc:creator>Amber</dc:creator>
		<pubDate>Mon, 05 Feb 2007 14:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88258</guid>
		<description><![CDATA[Not sure how it works with the Wordpress plug-in specifically, but I use Akismet on my home-grown blog and it was simply a matter of adding what I wanted to the &lt;code&gt;exit()&lt;/code&gt; line in the PHP code. I imagine you could do the same?

Mine just looks like this:

&lt;code&gt;
if($akismet-&gt;isSpam()) {
// Save the suspicious comment in the spam table
/*** Insert query goes here ***/
					
// Delete the buffer
ob_end_clean();
exit(&quot;Akismet thinks your comment is spam. E-mail me (amber at tangerinecs dot com) if that&#039;s not the case.&quot;);
} 
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Not sure how it works with the WordPress plug-in specifically, but I use Akismet on my home-grown blog and it was simply a matter of adding what I wanted to the <code>exit()</code> line in the PHP code. I imagine you could do the same?</p>
<p>Mine just looks like this:</p>
<p><code><br />
if($akismet-&gt;isSpam()) {<br />
// Save the suspicious comment in the spam table<br />
/*** Insert query goes here ***/</p>
<p>// Delete the buffer<br />
ob_end_clean();<br />
exit("Akismet thinks your comment is spam. E-mail me (amber at tangerinecs dot com) if that's not the case.");<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerard</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88225</link>
		<dc:creator>Gerard</dc:creator>
		<pubDate>Mon, 05 Feb 2007 12:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88225</guid>
		<description><![CDATA[I&#039;d be a tiny bit worried that you&#039;d effectively be sending a confirmation email to the spammers as well. Wouldn&#039;t you be waving a big flag saying &quot;Spam Me!!!&quot;

With the amount of comment spam these days, I check my moderation queues less and less. Comment spam really increases the cost of blog ownership, and if you don&#039;t start to ignore it, you&#039;ll spend your life in moderation hell!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d be a tiny bit worried that you&#8217;d effectively be sending a confirmation email to the spammers as well. Wouldn&#8217;t you be waving a big flag saying &#8220;Spam Me!!!&#8221;</p>
<p>With the amount of comment spam these days, I check my moderation queues less and less. Comment spam really increases the cost of blog ownership, and if you don&#8217;t start to ignore it, you&#8217;ll spend your life in moderation hell!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Graf</title>
		<link>http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88204</link>
		<dc:creator>Alexander Graf</dc:creator>
		<pubDate>Mon, 05 Feb 2007 11:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2007/02/04/wanted-akismet-warning-plugin/#comment-88204</guid>
		<description><![CDATA[Well, if you don&#039;t mind hacking the Akismet Plugin itself, there is a function &lt;code&gt;akismet_auto_check_comment()&lt;/code&gt; which preprocesses the comment.

In line &lt;code&gt;204&lt;/code&gt; through &lt;code&gt;214&lt;/code&gt;, the spam comment gets put in the spam queue. In line &lt;code&gt;212&lt;/code&gt; you could add a redirect yourself which notifies the user of &lt;em&gt;bad things happening&lt;/em&gt;.

Hope that helps. I doubt you could make a plugin that notifies the user without hacking the Akismet Plugin itself. Akismet adds itself as the first action in the comment preprocessing queue. If you could put a custom action before that, you&#039;d probably be best off by storing the comment in a session, letting Akismet do it&#039;s job and on the next page check whether the comment has been actually posted or not. Akismet doesn&#039;t exactly provide any API hooks from what I can see.]]></description>
		<content:encoded><![CDATA[<p>Well, if you don&#8217;t mind hacking the Akismet Plugin itself, there is a function <code>akismet_auto_check_comment()</code> which preprocesses the comment.</p>
<p>In line <code>204</code> through <code>214</code>, the spam comment gets put in the spam queue. In line <code>212</code> you could add a redirect yourself which notifies the user of <em>bad things happening</em>.</p>
<p>Hope that helps. I doubt you could make a plugin that notifies the user without hacking the Akismet Plugin itself. Akismet adds itself as the first action in the comment preprocessing queue. If you could put a custom action before that, you&#8217;d probably be best off by storing the comment in a session, letting Akismet do it&#8217;s job and on the next page check whether the comment has been actually posted or not. Akismet doesn&#8217;t exactly provide any API hooks from what I can see.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->