[How to] Fully Protect Joomla from forum and comment SPAM

Forum and comment spam is a pain in the neck. If you've ever experienced this type of spam you know how annoying it is to clean up after the messes they leave.

It is time consuming and tedious and you have much better use of your time. Recently we've discovered a great tool which has been extremely effective in blocking forum spam on our website. This is the zbblock spam bot security script. This script checks against several known spam forums lists for known spamming users, or IPs and stops them from accessing or registering on your Joomla! website. It has been a really great discovery and fake users registering has dropped to an absolute minimum.

Installing zblock is really easy. Download the script from here and upload the "zbblock" directory to the root of your website. Unzip in the root of your site, and it should put itself in it's own /zbblock/ subdirectory (not a zip-bomb). Then load http://YOURSITE/zbblock/setup.php and follow the instrutions to enable the script. You need to choose a method which depends on your hosting server. Make sure you chose a method which is marked as "BEST" for your website.

Once you are done you should do a couple of small changes, basically you need to insert the script "hook" into two index.php files

1. the index.php in the root folder of joomla

2. the index.php in your template (/templates/templatename/index.php)

Change the first line from



<?php require('/xxxxxxxx/zbblock/zbblock.php'); ?>

where xxxxxxxx is the home folder of your website. Don't worry about having to figure this all out, zbblock setup will make it easy for you by providing the exact hook which you need to use. Once this is done, check your killed_log.txt often to see which spam bots have been stopped and enjoy the new found peace.

Similar articles for protecting Joomla against SPAM

Neil from Webalicious has this great article on protecting Joomla from spammers, we'd recommend you having a look at this, his chosen methodology is very effective too. 

One more thing...

Do you have friends or a Facebook group who you think would find this useful? Share this with them and then let me know what they think.

Want to supercharge your website?

  Our website loads FAST ... just 1.29 seconds. We're hosted on FAST InMotion servers We want YOUR website to be fast too, so we've gotten you an exclusive deal - 47% OFF for DART Creations friends + FREE domain! Check it out NOW!


who are we?

DART Creations is run by David Attard - working in and around the web design niche for more than 12 years, we provide actionable tips for people who work with and on websites. We also run DronesBuy.net - a website for drone hobbyists

David attard

Follow us on Social





Popular Content

Joomla extensions to take your website to the NEXT level

Is your Joomla website reaching its full potential? We install many of these extensions on almost ALL of our Joomla sites - why don't you check them out our list of Joomla Extensions and see whether you can take your site to the next level?

Where are we hosted?

This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to MaxCDN!

Web Hosting MaxCDN - Speed up your website


InMotion Hosting Review - Recommended Web Hosting servers for business, Joomla, WordPress and ecommerce websites.

InMotion Hosting Review

Advertise on DART-Creations.com

DART Creations is interested in developing partnerships with mutual benefit. If you like the stuff we publish and would like to develop a relationship, we'd be happy to hear from you. Go on - drop us a line - we'd love to hear from you :-)

The Outstanding HunGRYJPEG Bundles

AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF!  Get this bundle for just $29 - This month ONLY!

The Hungry JPEG Awesome font bundles

New! DIVI 3.0 WordPress TeMPLATE + PageBuilder - 10% OFF Limited Launch offer

You'll surely create a perfect website with Divi 3.0!

Divi 3