Register | Log in | Password |

365 projects | 71 services | 215 websites | 1073 freelancers | 2762 topics | advertise


Purchase JoomlaWatch:
30 day money-back guarantee
Read more...
9 EUR lifetime license
Buy Now

15 EUR lifetime license
Buy Now
(nofollow link from sponsors page)

Login:

23%United States United States
15.7%India India
7.3%Russian Federation Russian Federation
7%Colombia Colombia
6.1%Germany Germany
5.1%United Kingdom United Kingdom
4.4%Poland Poland
3.4%Netherlands Netherlands
3%France France
2.8%Canada Canada

Today: 717
Yesterday: 1639
This Week: 3942
Last Week: 10059
This Month: 10641
Total: 33955

Users

Most active users today from total of 24:
matto, rottenberg, dontbugmeplease, Adelavigne, eghtedar, manuelflores, rockiesrider, michmich, infomech, Andii S., Me2, jacek2011, iwm, texa, rifki, openaspace, mirkogeo, neilmac, irobertm, rizkyfadillah
About JoomlaWatch:
JoomlaWatch is popular joomla visitor tracking and live stats component. It provides several features such as spam blocking, goals tracking, charts, nightly email reports, latest visit map, interactive HTML5 traffic flow graph and many other useful functionalities, which will help you to optimize your site.
RSS Feeds:

rss Freelance
rss Projects
rss Forum
rss Resources

Home

MathGuard anti-spam patch for Joomla's Akocomment component

Some time ago I started using the "AkoComment tweaked" component with my joomla instalation. Even though it is protected with the captcha image that you have to enter everytime before you submit the form, some spambots somehow broke this protection and kept flooding my comments. This was the reason why, I decided to replace the default captcha mechanism with my own PHP MathGuard Class. Here is a short overview how to apply my patch. 

Update - AkoComment TSE 1.4.6 with MathGuard anti-spam ! - installer  

To make the process described below simpler, I just added the fixed version of Akocomment TSE 1.4.6 with the MathGuard anti-spam do the download section.

Now you don't have to mess around with editing some files. Just unpack the zip, install all files and put ClassMathGuard.php into your joomla directory. Don't forget to disable the old security code. That's it.. 

Please make sure that "Report on Comment" setting in Akocomment administration is set to No. Some spambots use this technique to send spam messages. 

Enjoy ! 

Matto 


 Original manual patching procedure follows below (obsolete if you installed the whole bundle above) 

1. Disable the default security code in the joomla administration 

If you want to apply the same change for your website, first you have to disable the Akocomment's security code. You will find it in the joomla's AkoComment administration under the "Posting" tab.


Disabling the captcha in Akocomment administration 

 

2. Backup your joomla installation 

It is useful to backup your joomla installation, if something would go wrong. For example the versions won't match or whatever..

 

3. Download 

Download the akocomment-anti-spam-patch.zip from the download section of this website.

Then, unpack the akocomment-anti-spam-patch.zip to your joomla installation.

 

4. Replace the old files 

It replaces the old files with ones that are changed.  

 

5. Test the result 

When everything works well, instead of this:


The original AkoComment form with the captcha

you should see this:

 


Patch that replaces the captcha with my own MathGuard anti-spam protection

 

If there are some problems, eg. the different version, have a look at the code and add the sections within the comments:

//modified by Matej Koval www.codegravity.com

That way you can identify the parts that were changed. 

 

Enjoy :)

 

Comments  

 
0 #1 sashwell 2007-08-03 21:56
this is sweet way to keep us safe from spam. seen it on other sites and i want it.
however-
installer doesn't workfor me . joomla says its missing the xml. i am assumng that you replace the original akocomment.php with the one that comes in the zip. same with akocommentbot.php.

where does the ClassMathGuard.php go? does it remain in a folder called akocomment-anti-spam-patch Folder inside the component folder?
Quote
 
 
+1 #2 matto3c 2007-08-06 17:50
Please don't consider akocomment-anti-spam-patch.zip as joomla module/component archive or something. It's just an archive where are the patched files.

With these changed files you will just overwrite the original ones.

The ClassMathGuard.php belongs to the root directory of your joomla.

Hope I helped you, if you'd have any further problems, feel free to ask.
Quote
 
 
0 #3 Bjorn 2007-08-21 21:11
Hi,

Im using mambo 4.6.0 and Akocomment but have big problem with spammers. Im trying to use MathGuard but i cannot get it to work (comments does not show at all on the page). Do you have any tips on what to try? I was under the impression that mambo and joomla were more or less the same so it should work?!
Quote
 
 
0 #4 Matto 2007-09-19 09:23
Hi Bjorn,
sorry, I don't know on what scale mambo and joomla are different
Quote
 
 
0 #5 angel 2007-09-25 08:58
Where do I have to PUT exactly "class.akocomment.php"?

'Cause now I have the php file in com_akocomment folder and dosn't work!! I mean.. don't read the "class.akocomment.php"
Quote
 
 
0 #6 matto 2007-09-27 20:56
Please just uninstall the old component and install the new one from the zip archive. That's all.. You don't have to copy anything manually.
Quote
 
 
0 #7 tchap 2007-10-17 18:53
Sorry for my english :sigh:
I have a problem with this patch. If I install the new files, I lose the links "comment" or "Be first to comment this article ".
I use Joomla 1.0.12 and AkoComment tweaked special Edition 1.4.5
The problem come to the akocommentbot I think, but where? :-?
Thanks if you have an idea
Quote
 
 
0 #8 matto 2007-10-18 08:53
There were no major changes in the code except those where the if/else code that adds a new comment is inserted. Maybe you lost the configuration you had. Maybe try to enable those links in the configuration of AkoComment. Or that might be a difference between version 1.4.5 and 1.4.6 that comes with this bundle.
Quote
 
 
0 #9 tchap 2007-10-18 10:51
Thanks, but the option to enable the links don't exist in the configuration. Those links are the base of this component. I don't understand where the code disable this option.

I go to look at the php file, but if someone has a other idea :-?
Quote
 
 
0 #10 matto 2007-10-18 12:26
Interesting.. here on CodeGravity.com those "Be first to comment this article" or "comment" appear by default. You can check it on the main page, and as I remember did nothing more than re-installation of an old AkoComment (components, modules, mambots).

After a closer look I found this piece of code that should be responsible for this. akocommentbot.php line 661:


if ($ac_mainmode == "0") {
$row->text = str_replace( "{moscomment}", "$replacementlin k"._AKOCOMMENT_COM MENTS." ($total)".$showextralinks ."", $row->text );
} elseif (in_array ($row->sectionid, $seclistarray)) {
$row->text = str_replace( "{moscomment}", "", $row->text );
// Changed by Arnaud Bonneville, 25/08/2005
// If Zero comments are posted we dont show "0 comments"
if ($total>0) {
$row->text = $row->text."$replacementlin k"._AKOCOMMENT_COM MENTS." ($total)";
} else {
$row->text = $row->text."$replacementlin k"._AKOCOMMENT_WRI TEFIRSTCOMMENT."";
}
// End of change

// END ADDING OPTIONS BY Bernard Gilly
$row->text .= $showextralinks ."";
}


wondering what is there wrong in your case.. :roll:
Quote
 
 
0 #11 tchap 2007-10-18 13:13
I have decided to install de 1.4.6 version. And it works.
It's cool :-)

There is probably a bug with Akocomment 1.4.5 :-?

Thanks for your help.
Quote
 
 
0 #12 matto 2007-10-18 13:38
You are welcome. Enjoy it. 8)
Quote
 
 
0 #13 andro 2007-10-31 01:51
guddd....
Quote
 
 
0 #14 April Wilcox 2008-05-07 18:03
Thanks for this plugin, its really helping cut down on garbage comments on client's sites.
Quote
 
 
-1 #15 Sam 2008-07-11 13:13
I might use this plugin for my site!
Quote
 
 
0 #16 jimmy 2009-06-24 11:05
that's great
Quote
 
 
0 #17 irvine comptuter repair 2009-09-09 18:51
This looks really effective. I will definitely have to tell my Joomla friends about this plugin now!
Quote
 
 
0 #18 runescape gold 2009-09-29 12:18
i am very happy to see your blog ,thank you !
Quote
 
 
0 #19 UGGS 2009-11-02 09:52
Yeah,here with the 1.4.6 version,my comment had been that "bad answer"many times.
It really works.
Quote
 
 
0 #20 ugg online 2009-11-05 08:35
:-) I want to use it in my site.
Quote
 
 
0 #21 ed hardy 2010-03-02 10:54
I want to use it in my site.
Quote
 

Add comment


Security code
Refresh


no license? questions?

Recommended: (advertise)
Joomlawatch 1.2.17 Demo (PRO: 9/15 EUR)
Download Joomlawatch 1.2.17 (PRO: 9/15 EUR)



Rate this extension ...


Stay in touch:

New online JoomlaWatch demo available here: (link)
4 hours ago from web

New comprehensive article on JoomlaWatch goals: (link)

JoomlaWatch is now available for Drupal as unlocked BETA version for testing: (link)
3 days ago from web

New article about JoomlaWatch Live Stats feature: (link)
5 days ago from web

Tested versions 1.2.12 FREE, 1.2.17 PRO, 1.2.18 BETA on Joomla 2.5 and older Joomla 1.5 - confirmed to work on both Joomla versions
2 weeks ago from web

Small installer fixes - added JoomlaWatch compatibility with Joomla 2.5
2 weeks ago from web

New article on JoomlaWatch Traffic Flow feature: (link) ... All features of JoomlaWatch will be documented this way.
2 weeks ago from web

Another minor fixes for version 1.2.17 and 1.2.18, added functionality to display only changed values in SEO report - important keyprases
2 weeks ago from web

Minor fixes for JoomlaWatch version 1.2.17 (language files), you can find the latest package in customer zone ((link)
3 weeks ago from web

If you'd like to help with testing of the latest 1.2.18 BETA with new features (Joomla/Wordpress),please add me on skype: matto3c.Thank you!

New article on JoomlaWatch SEO (Search Engine Optimization) report functionality - (link)

JoomlaWatch 1.2.18 is out now! Features new click heatmap feature, SEO report - how people find you on google, and many other improvements

Reorganized the menu items. Now you'll be able to easily find most requested links

JoomlaWatch 1.2.18 BETA now ready! Main features: - Heatmap integration - SEO reports - Anti-spam section visualization (link)

Fixed one issue: no unique visits recorded; PHP $_SERVER['REMOTE_ADDR'] doesn't always return remote IP address! using HTTP_X_FORWARDED_FOR

Christmas Special - 19% OFF from all licenses until 25th of December 2011

JoomlaWatch Heatmap functionality nearly done. Works with all client resolutions. Will be available in next version. (link)

Simple customer zone - (link) is now ready. Users who purchased the PRO version can now download newest version from there.

Because of the problems with payments and forwarding. We are using (link) service to deliver you the files after purchase.

Tracking Expenses from SMS android application is now published on android market :) and it's completely free !



Partners:
Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:

Statistics:
Search Engine Genie Promotion Widget
Privacy policy | Advertise | Donate

Locations of visitors to this page


©2003-2010 Codegravity.com