Forums

anti spam not anti spamming

jeanjan 13 Nov, 2008
Hi,

I inserted chrono comments on a frontpage, anti spam is working but I still have approximately 2 or 3 spams in the comments a day.
Do you know a way to get rid of it?

thanks
Max_admin 13 Nov, 2008
Hi jeanjan,

Anti spam is actually should be called "human recognition", so if it passed then a human did it but it doesn't mean it will process the data submitted and see if its a spam or not!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jeanjan 15 Nov, 2008
ok!
now you know what is my required feature😉
btw, thanks for chrono comments
Max_admin 16 Nov, 2008
Hi jean, its too hard to process data to know if its a good data or just some unuseful data! if you have ideas then let me know about it!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jeanjan 09 Dec, 2008
Hi,

I found it!
I knew I saw it on wordpress. I used to have a plugin in wordpress called shoutbox. It's using akismet: http://akismet.com/
When a new comment, trackback, or pingback comes to your blog it is submitted to the Akismet web service which runs hundreds of tests on the comment and returns a thumbs up or thumbs down.

This is my thank you for your great components and support.
Max_admin 09 Dec, 2008
Thank you, I will see if we can add this to any of the next versions! do you have any idea about its failure rate ? the probability it passes a bad one or drop a good one ?

regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jeanjan 14 Dec, 2008
I don't want to say something stupid.
I don't have numbers but I didn't notice spams when I used it.
Max_admin 14 Dec, 2008
No problems, thanks jean!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Tom0 15 Oct, 2009
Hey,

I was having this problem too and getting a large number of spam comments a day. I looked into akismet and it looks good ("runs hundreds of tests on the comment" - http://akismet.com). There is also a joomla component which acts as a framework for the requests which you can get here: http://www.waltercedric.com/downloads/cat_view/333-joomla15/344-akismet4joomla--akismet4joomla-.html.

I found a bug in this extension but fixed it quite easily and you can see my fix on that extension's forum here: http://forums.waltercedric.com/index.php/topic,713.0.html

Now the code to put in your components/com_chronocomments/chronocomments.php file:

//Tom- put in code to check against askimet if verify has returned 1
if ($post['verify']==1)
{
require_once(JPATH_BASE.DS. "administrator/components/com_akismet/akismetJoomlaAPI.php");
$JoomlaAkismetAPI = & new JoomlaAkismetAPI();
$oracleDecision = $JoomlaAkismetAPI->isCommentSpam("", $post['name'], $post['email'], $post['url'], $post['text']);
$post['verify'] = ($oracleDecision) ? 0 : 1;
}
//---- end changes


in version 1.0 of cc i put this code on line 152 right after the this line:

$post['verify'] = ((($configs->get('new_posts_verified') == '0')|| (($configs->get('new_posts_verified') == '1')&&($user->id))) ? 1 : ((($configs->get('new_posts_verified') == '1')&&($user->guest)) ? 0 : 0));



..and its working a treat for me, spam has completely stopped - well its not actually stopped because the messages still get stored but the verification is set to 0 so they dont show on your site but you can still double check the spam messages in the comments manager. Also you will still get email notifications, although Im sure you can do something about that if you wanted to.

Thanks to Max and Bob (as ever) for this component, walter cedric for the akismet joomla port and the good people at akismet who made it all possible!

Tom

EDIT::
Just realised this method sends out verification emails to the spambot's email address which are now collecting in my mailbox as delivery failures. To stop this change line 178-180 with the following:

// send verification email
if(!$post['commentid']){
	if(!$post['verify'] && !isset($oracleDecision) || !$oracleDecision){

so if we have a decision from akismet we dont send an email to the poster.
GreyHead 15 Oct, 2009
Hi Tom,

Very nice, thank you.

Bob

PS Reminds me that one of my very first posts here was about using Walter Cedrics captcha in ChronoForms (before CF had it's own anti-spam).
This topic is locked and no more replies can be posted.