cogVarious tools to help fight spam
Developed by

Vincent Massol

Active Installs40
2 Votes
LicenseGNU Lesser General Public License 2.1

XWiki 6.4+

Installable with the Extension Manager


Help fighting spam by locating and removing spam pages (Spam Cleaning) and preventing new spam from being added to the wiki (Spam Checking).

Spam Cleaning


  • Show latest events from the Activity Stream
  • Ability to find and delete revisions from pages containing a given keyword + all authors + all pages from these authors + Activity Stream from these authors
  • Ability to find and delete revisions from pages authored by a given user
  • Ability to run the Spam Checker on each matching page to verify if the page would pass or not the Spam Checker (see below for more information on the Spam Checker)
  • Checks all revisions of the matching pages found and removes all revisions authored by one the authors found during the search. If no revisions remain, then delete the page.

To use the Spam Cleaner, click on the "AntiSpam" icon in the Applications Panel:


Home page:


Searching for a spam keyword:


Testing if the found pages match defined spam keywords (this allows you to tune your Keywords page before cleaning the page):


Confirm deletion of pages:




Spam Checking


  • Check for spam content when saving pages. A page is considered as spam in the following conditions:
    • It contains one of the defined spam keywords/sentences blacklist. See below.
    • The IP of the user making the change is contained in a blacklist of IPs.
  • When a page update is found to contain spam the following happens:
    • XWiki 7.4.1+ Cancels saving the page if it contains spam and display an error.
    • The XWiki user is made inactive
    • The IP of the user is added to a list of banned IPs, thus preventing any further edits from that user
    • The disabled user is added to a list of disabled users
  • Ability to exclude some spaces from being checked for spam
  • Since 1.6 Logs of all spam checks that led to capturing some spam user are logged in AntiSpam.Logs

The configuration data and banned IPs and banned users can be accessed from the home page of the application:


And here's what happens when a matching spam keyword is found when saving a page (in the future we'll improve the L&F):


Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes


  • Closed ANTISPAM-31 Allow users to edit ip + keyword + exclude + disabled users pages
  • Closed ANTISPAM-27 Generate some logs when the spam checks finds some matches
  • Closed ANTISPAM-24 Wrong default permissions when installing on XWiki 6.4.x
  • Closed ANTISPAM-23 Ensure that we never delete related pages from users having Admin access to the AntiSpam tool




  • Closed ANTISPAM-22 Exclude the full AntiSpam space from search
  • Closed ANTISPAM-21 Also check for spam in the page name
  • Closed ANTISPAM-20 Add support for checking for spam content in xobjects


  • Closed ANTISPAM-18 Add ability to identify pages not triggering the spam checker when searching for spam pages
  • Closed ANTISPAM-17 Add ability to add comments in configuration files
  • Closed ANTISPAM-16 UI errors when deleting pages created by a given user
  • Closed ANTISPAM-15 Also check for spam in titles


  • Closed ANTISPAM-14 The wrong IP is logged
  • Closed ANTISPAM-13 Add ability to configure a whitelist of spaces in which spam is not checked for


  • Closed ANTISPAM-12 Spam checker is failing on multiwikis
  • Closed ANTISPAM-11 Ignore case when comparing the content with the AntiSpam.Keywords list
  • Closed ANTISPAM-10 AntiSpam.Keywords should be excluded from spam search


  • Closed ANTISPAM-9 Add the ability to configure if the antispam checker is on or off
  • Closed ANTISPAM-8 Register the AntiSpam application in the Application Panel
  • Closed ANTISPAM-7 Prevent saving a document when it contains spam or it's from a spammer
  • Closed ANTISPAM-6 Add a Spam checking API
  • Closed ANTISPAM-5 Avoid potential mistakes by surrounding search terms with quotes


  • Closed ANTISPAM-4 Ask for confirmation before starting to delete pages
  • Closed ANTISPAM-3 Display latest activity stream events in the UI



Dependencies for this extension (org.xwiki.contrib:application-antispam-ui 1.6):

Created by Vincent Massol on 2016/01/29 13:52

Get Connected