<?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"
	>
<channel>
	<title>Comments on: Three Strikes and CSPAM updated</title>
	<atom:link href="http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<pubDate>Thu, 16 Oct 2008 00:46:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Nico</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3273</link>
		<dc:creator>Nico</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3273</guid>
		<description>A little buggy in 1.2 beta:

&lt;quote&gt;
Fatal error: Cannot redeclare train() (previously declared in /threestrikes12.php:100) in /bayes/trainfiltergood.php on line 16
&lt;/quote&gt;</description>
		<content:encoded><![CDATA[<p>A little buggy in 1.2 beta:</p>
<p><quote><br />
Fatal error: Cannot redeclare train() (previously declared in /threestrikes12.php:100) in /bayes/trainfiltergood.php on line 16<br />
</quote></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3274</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3274</guid>
		<description>That particular bug should be fixed in the download. Thanks for the report.</description>
		<content:encoded><![CDATA[<p>That particular bug should be fixed in the download. Thanks for the report.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3275</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3275</guid>
		<description>I keep getting this error when posting comments.  I've checked and deleted any whitespace in the php files but still get it.  Have I missed something?

Warning: Cannot modify header information - headers already sent by (output started at /wp/wp-content/plugins/bayes/class.naivebayesian.php:82) in /wp/wp-comments-post.php on line 37</description>
		<content:encoded><![CDATA[<p>I keep getting this error when posting comments.  I&#8217;ve checked and deleted any whitespace in the php files but still get it.  Have I missed something?</p>
<p>Warning: Cannot modify header information - headers already sent by (output started at /wp/wp-content/plugins/bayes/class.naivebayesian.php:82) in /wp/wp-comments-post.php on line 37</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graham</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3277</link>
		<dc:creator>graham</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3277</guid>
		<description>I keep getting sent to the fbi site, whatever I type. This didn't happen until I also installed ur preview of comments. I then got rid of that, but it's still a problem.

Any ideas? (I've de-activated it for the time-being, but given the number of spam this morning, I'd like to get it up again as soon as possible.)</description>
		<content:encoded><![CDATA[<p>I keep getting sent to the fbi site, whatever I type. This didn&#8217;t happen until I also installed ur preview of comments. I then got rid of that, but it&#8217;s still a problem.</p>
<p>Any ideas? (I&#8217;ve de-activated it for the time-being, but given the number of spam this morning, I&#8217;d like to get it up again as soon as possible.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3278</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3278</guid>
		<description>Look for empty lines in your list of spam words, this is indicative of that. Plus, your IP might be in that list, which will cause that problem. Make sure you own IP does not show up in that list.</description>
		<content:encoded><![CDATA[<p>Look for empty lines in your list of spam words, this is indicative of that. Plus, your IP might be in that list, which will cause that problem. Make sure you own IP does not show up in that list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graham</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3280</link>
		<dc:creator>graham</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3280</guid>
		<description>Well spotted! There was an empty line about half way down. Cheers.</description>
		<content:encoded><![CDATA[<p>Well spotted! There was an empty line about half way down. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3288</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3288</guid>
		<description>Hello, someone pointed me in this direction to perhaps help curb my spam issues. I just got done deleting over 3000 comments from my blog. Ack!</description>
		<content:encoded><![CDATA[<p>Hello, someone pointed me in this direction to perhaps help curb my spam issues. I just got done deleting over 3000 comments from my blog. Ack!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Woordenaar &#124; over leven &#187; Commentspam</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3321</link>
		<dc:creator>Woordenaar &#124; over leven &#187; Commentspam</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3321</guid>
		<description>[...] wat hij moet doen. Zelf gebruik ik een combinatie van twee plugins: Kittens Spam Words en &lt;a href="http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/"&gt;Three Strikes&lt;/a&gt;. Three Strikes biedt sinds begin januari ook [...]</description>
		<content:encoded><![CDATA[<p>[...] wat hij moet doen. Zelf gebruik ik een combinatie van twee plugins: Kittens Spam Words en <a href="http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/">Three Strikes</a>. Three Strikes biedt sinds begin januari ook [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan Kehoe</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3336</link>
		<dc:creator>Brendan Kehoe</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3336</guid>
		<description>I also ran into the problem of every comment, no matter what, was being rated a spam.  I discovered that
   get_settings( 'moderation_keys' )
was returning an empty array, but this

           //Strike: If there is a Spam Words Match, you have two strikes
        $words = explode("\n", get_settings('moderation_keys') );
        foreach ($words as $word) {
        $word = trim($word);
        $pattern = "#$word#i";
        if ( preg_match($pattern, $author) ) $strike += 1;

ended up trying to match '##i', which ended up incrementing $strike a bunch of times.

As a workaround, I put this wrapper around it:

        //Strike: If there is a Spam Words Match, you have two strikes
        $modkeys = get_settings( 'moderation_keys' );
        if ( is_array( $modkeys ) )
        {
                $words = explode("\n", $modkeys );
                 ...
        }

Since that lookup for moderation_keys occurs more than once, there's probably a much cleaner and orderly way to do this.  But I'm running out the door, and needed comments to work again but I wanted to keep threestrikes up as well. :)

Hope this helps,
B</description>
		<content:encoded><![CDATA[<p>I also ran into the problem of every comment, no matter what, was being rated a spam.  I discovered that<br />
   get_settings( &#8216;moderation_keys&#8217; )<br />
was returning an empty array, but this</p>
<p>           //Strike: If there is a Spam Words Match, you have two strikes<br />
        $words = explode(&#8221;\n&#8221;, get_settings(&#8217;moderation_keys&#8217;) );<br />
        foreach ($words as $word) {<br />
        $word = trim($word);<br />
        $pattern = &#8220;#$word#i&#8221;;<br />
        if ( preg_match($pattern, $author) ) $strike += 1;</p>
<p>ended up trying to match &#8216;##i&#8217;, which ended up incrementing $strike a bunch of times.</p>
<p>As a workaround, I put this wrapper around it:</p>
<p>        //Strike: If there is a Spam Words Match, you have two strikes<br />
        $modkeys = get_settings( &#8216;moderation_keys&#8217; );<br />
        if ( is_array( $modkeys ) )<br />
        {<br />
                $words = explode(&#8221;\n&#8221;, $modkeys );<br />
                 &#8230;<br />
        }</p>
<p>Since that lookup for moderation_keys occurs more than once, there&#8217;s probably a much cleaner and orderly way to do this.  But I&#8217;m running out the door, and needed comments to work again but I wanted to keep threestrikes up as well. <img src='http://weblogtoolscollection.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hope this helps,<br />
B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3342</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3342</guid>
		<description>Very nice catch, thanks. I will add it to the original code!</description>
		<content:encoded><![CDATA[<p>Very nice catch, thanks. I will add it to the original code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blips</title>
		<link>http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3544</link>
		<dc:creator>Blips</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2005/01/05/three-strikes-and-cspam-updated/#comment-3544</guid>
		<description>I'm in the middle of changing from Movable Type to Wordpress because of excessive spam atacks. I'm willing to be part of your test. Please send me the link for downloading it. Looks like you have the right thing going on. :)
Thanks
Blips</description>
		<content:encoded><![CDATA[<p>I&#8217;m in the middle of changing from Movable Type to Wordpress because of excessive spam atacks. I&#8217;m willing to be part of your test. Please send me the link for downloading it. Looks like you have the right thing going on. <img src='http://weblogtoolscollection.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks<br />
Blips</p>
]]></content:encoded>
	</item>
</channel>
</rss>
