<?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: Akismet SPAM Filtering in phpBB3</title>
	<atom:link href="http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/</link>
	<description>Mark Hutton</description>
	<lastBuildDate>Mon, 18 Oct 2010 13:18:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Buzz Lightyear</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-225852</link>
		<dc:creator>Buzz Lightyear</dc:creator>
		<pubDate>Mon, 18 Oct 2010 13:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-225852</guid>
		<description>sorry, one more line code goes before that:

[code](int) $uid = $user-&gt;data[&#039;user_id&#039;];[/code]

so the complete code looks like:

[code]// Akismet SPAM check
if (($user-&gt;data[&#039;user_posts&#039;]&lt;=6) &amp;&amp; ($user-&gt;data[&#039;user_type&#039;]==0)) {

	$akismet_comment = array(
	    &#039;comment_type&#039;              =&gt; &#039;comment&#039;,
	    &#039;comment_author&#039;            =&gt; $user-&gt;data[&#039;username&#039;],
	    &#039;comment_author_email&#039;      =&gt; $user-&gt;data[&#039;user_email&#039;],
	    &#039;comment_author_url&#039;        =&gt; $user-&gt;data[&#039;user_website&#039;],
	    &#039;comment_content&#039;           =&gt; $this-&gt;message,
	);

	$akismet = new akismet(&#039;YOURAKISMETAPIKEY&#039;,&#039;http://YOURDOMAIN.TLD&#039;);

	if(!$akismet-&gt;error) {
		if($akismet-&gt;valid_key()) {
			if($akismet-&gt;is_spam($akismet_comment)) {
				$this-&gt;warn_msg[] = $user-&gt;lang[&#039;AKISMET_SPAM&#039;];
				$a_to = &quot;EMAIL@WHERETOSENDNOTIFICATION.EMAIL&quot;;
				$a_subject = &quot;Attempted SPAM Post by &quot;.$user-&gt;data[&#039;username&#039;];
				$a_body = $this-&gt;message;
				$a_headers = &quot;From: EMAIL@NOTIFICATIONSENDER.EMAIL&quot;;
				mail($a_to, $a_subject, $a_body, $a_headers);

				(int) $uid = $user-&gt;data[&#039;user_id&#039;];

				$sql = &quot;INSERT INTO &quot; . BANLIST_TABLE . &quot; (ban_userid, ban_reason, ban_give_reason) VALUES (&#039;$uid&#039;, &#039;AutoBAN - posting SPAM&#039;, &#039;AutoBAN - posting SPAM&#039;)&quot;;
			  $db-&gt;sql_query($sql);
			  $sql = &quot;DELETE FROM &quot; . SESSIONS_TABLE . &quot; WHERE `session_user_id` = $uid&quot;;
			  $db-&gt;sql_query($sql);

			}
		}
	}
}[/code]</description>
		<content:encoded><![CDATA[<p>sorry, one more line code goes before that:</p>
<p>(int) $uid = $user-&gt;data['user_id'];</p>
<p>so the complete code looks like:</p>
<p>// Akismet SPAM check<br />
if (($user-&gt;data['user_posts']&lt;=6) &amp;&amp; ($user-&gt;data['user_type']==0)) {</p>
<p>	$akismet_comment = array(<br />
	    &#8216;comment_type&#8217;              =&gt; &#8216;comment&#8217;,<br />
	    &#8216;comment_author&#8217;            =&gt; $user-&gt;data['username'],<br />
	    &#8216;comment_author_email&#8217;      =&gt; $user-&gt;data['user_email'],<br />
	    &#8216;comment_author_url&#8217;        =&gt; $user-&gt;data['user_website'],<br />
	    &#8216;comment_content&#8217;           =&gt; $this-&gt;message,<br />
	);</p>
<p>	$akismet = new akismet(&#8216;YOURAKISMETAPIKEY&#8217;,'http://YOURDOMAIN.TLD&#8217;);</p>
<p>	if(!$akismet-&gt;error) {<br />
		if($akismet-&gt;valid_key()) {<br />
			if($akismet-&gt;is_spam($akismet_comment)) {<br />
				$this-&gt;warn_msg[] = $user-&gt;lang['AKISMET_SPAM'];<br />
				$a_to = &quot;EMAIL@WHERETOSENDNOTIFICATION.EMAIL&quot;;<br />
				$a_subject = &quot;Attempted SPAM Post by &quot;.$user-&gt;data['username'];<br />
				$a_body = $this-&gt;message;<br />
				$a_headers = &quot;From: <a href="mailto:EMAIL@NOTIFICATIONSENDER.EMAIL">EMAIL@NOTIFICATIONSENDER.EMAIL</a>&quot;;<br />
				mail($a_to, $a_subject, $a_body, $a_headers);</p>
<p>				(int) $uid = $user-&gt;data['user_id'];</p>
<p>				$sql = &quot;INSERT INTO &quot; . BANLIST_TABLE . &quot; (ban_userid, ban_reason, ban_give_reason) VALUES (&#8216;$uid&#8217;, &#8216;AutoBAN &#8211; posting SPAM&#8217;, &#8216;AutoBAN &#8211; posting SPAM&#8217;)&quot;;<br />
			  $db-&gt;sql_query($sql);<br />
			  $sql = &quot;DELETE FROM &quot; . SESSIONS_TABLE . &quot; WHERE `session_user_id` = $uid&quot;;<br />
			  $db-&gt;sql_query($sql);</p>
<p>			}<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buzz Lightyear</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-225850</link>
		<dc:creator>Buzz Lightyear</dc:creator>
		<pubDate>Mon, 18 Oct 2010 13:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-225850</guid>
		<description>Hi Mark,
after i&#039;ve got tired of banning all those spammers on my board, i&#039;ve extended the script a little bit, so it also bans on spam attempt.
Maybe it&#039;s not very polished as it is now, but it works for me. ;)

After mail call, in your script, i just added:
[code]$sql = &quot;INSERT INTO &quot; . BANLIST_TABLE . &quot; (ban_userid, ban_reason, ban_give_reason) VALUES (&#039;$uid&#039;, &#039;AutoBAN - posting SPAM&#039;, &#039;AutoBAN - posting SPAM&#039;)&quot;;
$db-&gt;sql_query($sql);
$sql = &quot;DELETE FROM &quot; . SESSIONS_TABLE . &quot; WHERE `session_user_id` = $uid&quot;;
$db-&gt;sql_query($sql);
[/code]

which adds that user to banlist table and deletes his session, so he gets immediately logged of.</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
after i&#8217;ve got tired of banning all those spammers on my board, i&#8217;ve extended the script a little bit, so it also bans on spam attempt.<br />
Maybe it&#8217;s not very polished as it is now, but it works for me. <img src='http://www.influenced.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>After mail call, in your script, i just added:<br />
$sql = &quot;INSERT INTO &quot; . BANLIST_TABLE . &quot; (ban_userid, ban_reason, ban_give_reason) VALUES (&#8216;$uid&#8217;, &#8216;AutoBAN &#8211; posting SPAM&#8217;, &#8216;AutoBAN &#8211; posting SPAM&#8217;)&quot;;<br />
$db-&gt;sql_query($sql);<br />
$sql = &quot;DELETE FROM &quot; . SESSIONS_TABLE . &quot; WHERE `session_user_id` = $uid&quot;;<br />
$db-&gt;sql_query($sql);</p>
<p>which adds that user to banlist table and deletes his session, so he gets immediately logged of.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buzz Lightyear</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-166740</link>
		<dc:creator>Buzz Lightyear</dc:creator>
		<pubDate>Thu, 10 Sep 2009 06:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-166740</guid>
		<description>Hi Mark,
many many thanxs!!!
your solution works perfectly and akismet can catch about 98% of spam posts.
Really wonderful...

One idea, though.. ;) it would be great, if you can also implement warnings and banning. Let&#039;s say, after 1st spam post, warning will go to the user. After another spam post, user will get banned ;)

one more time THANK YOU!
I highly recommend this to every one, using phpbb3. No more WOW gold and stuff like that.</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
many many thanxs!!!<br />
your solution works perfectly and akismet can catch about 98% of spam posts.<br />
Really wonderful&#8230;</p>
<p>One idea, though.. <img src='http://www.influenced.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  it would be great, if you can also implement warnings and banning. Let&#8217;s say, after 1st spam post, warning will go to the user. After another spam post, user will get banned <img src='http://www.influenced.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>one more time THANK YOU!<br />
I highly recommend this to every one, using phpbb3. No more WOW gold and stuff like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-164448</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 24 Aug 2009 08:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-164448</guid>
		<description>Yeah, I set up daroPL_AntiSpam to help prevent automated signups and my Akismet solution for people manually trying to spam</description>
		<content:encoded><![CDATA[<p>Yeah, I set up daroPL_AntiSpam to help prevent automated signups and my Akismet solution for people manually trying to spam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buzz Lightyear</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-164443</link>
		<dc:creator>Buzz Lightyear</dc:creator>
		<pubDate>Mon, 24 Aug 2009 07:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-164443</guid>
		<description>Hi Mark,
many thanxs.. this looks very promising.
Last days i am also dealing with shit loads of spam at my forums and it all seems to be manually entered spam.

i&#039;ll try your solution and will let you know, how it goes...

One question please... How about the &quot;phpBB3 mod called daroPL_AntiSpam&quot;?
Do you actually use it along with your Akismet solution?

thanx</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
many thanxs.. this looks very promising.<br />
Last days i am also dealing with shit loads of spam at my forums and it all seems to be manually entered spam.</p>
<p>i&#8217;ll try your solution and will let you know, how it goes&#8230;</p>
<p>One question please&#8230; How about the &#8220;phpBB3 mod called daroPL_AntiSpam&#8221;?<br />
Do you actually use it along with your Akismet solution?</p>
<p>thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.influenced.net/2009/06/03/akismet-spam-filtering-in-phpbb3/comment-page-1/#comment-155916</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 03 Jun 2009 13:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.influenced.net/?p=142#comment-155916</guid>
		<description>Please remember to replace the obvious with your real information,

e.g.
&lt;strong&gt;YOURAKISMETAPIKEYHERE&lt;/strong&gt; = The API Key you have gotten from signing up to Wordpress.com
&lt;strong&gt;http://www.yourforums.com/forums&lt;/strong&gt; = URL of your forums

..and the email from &amp; to names/addresses

Also please note that I made these mods to phpBB 3.0.5, so you may not be able to find some of the code if you&#039;re using earlier versions, though I think it&#039;ll probably be there in all previous 3.0.x versions</description>
		<content:encoded><![CDATA[<p>Please remember to replace the obvious with your real information,</p>
<p>e.g.<br />
<strong>YOURAKISMETAPIKEYHERE</strong> = The API Key you have gotten from signing up to WordPress.com<br />
<strong><a href="http://www.yourforums.com/forums">http://www.yourforums.com/forums</a></strong> = URL of your forums</p>
<p>..and the email from &amp; to names/addresses</p>
<p>Also please note that I made these mods to phpBB 3.0.5, so you may not be able to find some of the code if you&#8217;re using earlier versions, though I think it&#8217;ll probably be there in all previous 3.0.x versions</p>
]]></content:encoded>
	</item>
</channel>
</rss>

