Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP JavaScript CSS
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
classes
db
lang/en
tests
.gitignore
CHANGES.md
README.md
block_spam_deletion.php
confirmdelete.php
detect.php
improveakismet.php
lib.php
marknotspam.php
module.js
reportspam.php
settings.php
styles.css
styles.less
version.php
viewvotes.php

README.md

Spam deletion block for Moodle

The spam deletion block is used for detecting and deleting spam. The block adds "Report spam" action link into the forum pages and comments. It lets the operator easily suspend spammer accounts and delete their contents.

Post-installation setup

  • Add the block to the front page
  • Edit the block settings
  • Change 'Page contexts' to 'Display through the entire site'

To let the block automatically detect and block spam-like forum posts, configure the setting block_spam_deletion_badwords and append the following into your config.php file after the setup.php inclusion:

if ($SCRIPT === '/mod/forum/post.php') {
    @include_once("$CFG->dirroot/blocks/spam_deletion/detect.php");
}

Please check the code of that detect.php script to understand what criteria it uses to block forum posts. The current behaviour has been tuned up to work well at moodle.org.

See the discussion Spam reporting and removal for further information and tracker links.

Maintainer

The block has been written and is currently maintained by Dan Poltawski. See the block page at Moodle Plugins directory for the full list of contributors.

Something went wrong with that request. Please try again.