Spam deletion Block for Moodle

In a recent attack on by spammers a lot of spam emails are delivered to the users from Moodle forums. Mr. Ken task started a forum thread for the same spam emails which resulted in few solutions which can be utilized on a Moodle site to stop spams.

First one is Spam Deletion Block and the other one is to have a create new account page with some kind of security questions because attackers are still able to solve the captcha option to create new accounts.

Spam Deletion block is available for Moodle 2.4 only in the Moodle Plugins database but through Github page I was able to download the latest version which works quite  well with Moodle 2.7.

To install the block:

  • Add the block to the front page
  • Edit the block settings
  • Change ‘Page contexts’ to ‘Display through the entire site’
  • Add the list of words  to be restricted in the Spam cleaner tool of your site located at the URL http://yourmoodlesite/admin/tool/spamcleaner/index.php

Spam Deletion Block

The other method includes adding a security question page on create new account page of your site as demonstrated on the link:

To open account, one has to read a short text and answer an intelligent question. It appears that this is beyond the ‘trained slaves’ or bots who might enter the captcha codes.

For complete information, please check the forum thread at:

Jaswinder Singh

Jaswinder Singh, passionate about using Moodle in improving the Indian Education System and reaching the students in far flung areas where still education seems to be a impossible prospect of life. He is the author of the popular Moodle Book "How to use Moodle 2.7". In October 2016, Jaswinder was elected as the Moodle User's Association Committee member - the first to make it from India.

Related Articles