Select Page

Protect Mambo against spammers!

Installation of Hashcash, Security images, and modified version of AkoComment, AkoBook, Contact for Mambo

Documentation version 1.0
Bundle version 1.0 available in my download section AntiSpamForMamboBundle1.0.zip

Report any bugs using the contact section of www.waltercedric.com
Good luck! and click read more!

InstallationWhyFileHowRisksManuals
Changes
Require 
Mambot akocommentThis mambots create a comment box
in each article published. It is intended to be use with com_akocomment

it now support Hashcash and security images

akocommentbot.zipThis file can be install like any mambot
using the Mambo admin panel
No data can be lost, the original code has been only altered not fundamentaly changed.nonecom_akocomment 
com_log4phpThis is a logging framework for Mambo using the same technology as Log4Java

Install it only if You want to install com_hashcash

com_log4php.zipThis file can be installl like any component using the admin panelNo data can be lost , it is only php object codeYou can define a logger for the all mambo component by adding bold lines in /index.php

// checks for configuration file, if none found loads installation page
if ( !file_exists( ‘configuration.php’ ) || filesize( ‘configuration.php’ ) < 10 ) {
header( ‘Location: installation/index.php’ );
exit();
}
include_once( ‘globals.php’ );
require_once( ‘configuration.php’ );

define(‘LOG4PHP_CONFIGURATION’, $mosConfig_absolute_path.’/components/com_log4php/log4php.properties’);
define(‘LOG4PHP_DIR’, $mosConfig_absolute_path.’/components/com_log4php/api’);
require_once(LOG4PHP_DIR . ‘/LoggerManager.php’);

// displays offline page
if ( $mosConfig_offline == 1 ){
include( ‘offline.php’ );
exit();
}

But You may also want to configure log4PHP by opening
log4php.properties

  
com_hashcashHashcash is a protecting form framework for Mambo
which use cryptographic hidden field and require some
cpu power from the spammer.

It is not mandatory to install com_hashcash if You prefer to use com_securityimages. But you can use both!

com_hashcash.zipThis file can be installl like any component using the admin panelNo data can be lost , it is only php object codeYou will have to open the file index.php
of your template site to add a line (see example below, line is in bold).

<?php
defined( ‘_VALID_MOS’ ) or die( ‘Direct Access to this location is not allowed.’ );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( ‘=’, _ISO );
// xml prolog
echo ‘<?xml version="1.0" encoding="’. $iso[1] .’"?’ .’>’;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php
include($mosConfig_absolute_path."/components/com_hashcash/includes/head.inc" );
?>

<title><?php echo $mosConfig_sitename; ?></title>

com_log4php 
com_securityimagesSecurity images are hard to read images generated by a program. User has to reproduce what he see in order to be allowed to post something

It is not mandatory to install com_securityimages if You prefer to use com_hashcash. But you can use both!

com_securityimages.zipThis file can be installl like any component using the admin panelNo data can be lost , it is only php object code, and creatin a new table mos_securityimagesnone

the component is globally deactivated after install. Go in its admin panel, to "general tab" and switch Switch component OFF globally :to No

GD library
(PHP extension)
 
com_contactsThis is a core component of Mambo, for handling contact

it is mandatory to install com_securityimages first! there is right now no admin panel for com_contact where You can deactivate com_securityimages

com_contact.zipSorry You only have to overwrite all files on Your homepage using FTP

source file from zip
destination: /components/com_contact

No risk. If You do not have com_securityimages installed You may have compile error when going in page contactmanual FTP copycom_securityimages 
com_akocommentThis allow user to post comments on Your homepage. This great components has been created by Arthur Konze www.mamboportal.com

It is not mandatory to install hashcash if You prefer
to use com_securityimages. But you can use both!

com_akocomment.zip1. If You are installing akocomment for the first time, You can install this component like any other Mambo component.
OR
2. You are already using akocomment on Your homepage. (see risk 2.) You can either, depending on Your skills:

– copy files manually using ftp OR
– install using method 1. then restore the right table

1. No risks if you install akocomment for the first time

2. If You install it using the method 1, The install drop existing database, so You will lost existing comments or will have to restore them from a backup. It is better to ovwerwrite file manually with ftp

Component in zip file has hashcash and securityimages switched off as default. go to their admin panel to activate the spamming technology You prefer…
can use
com_securityimages
com_hashcash
 
com_akoguestbookThis allow user to have a guestbook on Your homepage. This great components has been created by Arthur Konze www.mamboportal.com 

It is not mandatory to install hashcash if You prefer
to use com_securityimages. But you can use both!

com_akobook.zip1. If You are installing akobook for the first time, You can install this component like any other Mambo component.
OR
2. You are already using akobook on Your homepage. (see risk 2.) You can either, depending on Your skills:

– copy files manually using ftp OR
– install using method 1. then restore the right table

1. No risks if you install akobook for the first time

2. If You install it using the method 1, The install drop existing database, so You will lost existing guestbook or will have to restore them from a backup. It is better to ovwerwrite file manually with ftp

Component in zip file has hashcash and securityimages switched off as default. go to their admin panel to activate the spamming technology You prefer…
can use
com_securityimages
com_hashcash
 

 

 

 

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories