In a recent attack on Moodle.org 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
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: https://moodle.org/mod/forum/discuss.php?d=293313