Created: 2008-06-26 15:43
Updated: 2016-05-08 10:07
License: mit


Roller Defensio Plugin


  • JDK 1.5 or greater.
  • Roller 4.0 or greater.

Copyright and Licensing

The source code to this plugin is released under an MIT License.

Copyright 2008 Alex Coles.

A copy of the License may be found in the MIT-LICENSE file.

Additionally, this plugin bundles [Defensio for Java][], written by [Remy Giard][]. Code in the com.defensio.* packages is copyrighted as follows:

Copyright 2007 Remy Giard


Install files

You can use the installer script provided to perform step 1 for you: ROLLER_INSTALL_DIR=/usr/local/tomcat/webapps/roller ./

  1. Copy the following libraries to your ROLLER_INSTALL_DIR/WEB-INF/lib:
    • roller-defensio.jar: this plugin


  1. Edit your with your favourite editor. If you installed Roller to Tomcat for example, your Roller configuration will most likely be found in $CATALINA_HOME/common/classes/

    You'll need to go to and get an API key. Once you've done that, set the following property in your

    comment.validator.defensio.key=<get one at>

    and add the DefensioCommentValdiator to the list of comment validators:

    comment.validator.classnames=\ org.apache.roller.weblogger.ui.rendering.plugins.comments.BlacklistCommentValidator,\ org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessLinksCommentValidator,\ org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessSizeCommentValidator,\ com.ikonoklastik.roller.ui.plugins.comments.defensio.DefensioCommentValidator

  2. Once you're done, restart your Roller web application.

Building the Source

This plugin was developed with the NetBeans IDE. A NetBeans project is included along with the source code.

To compile the Roller Markdown plugin, you'll need to download either the Roller source or binaries:

wget http://apache.mult

The plugin has the following dependencies, which you will need to include in your compile path:

  • roller-business
  • roller-core
  • roller-web
  • commons-httpclient
  • commons-logging

More detailed instructions for building the source will be added.


Use is at your own risk. Comments, feedback and patches are welcome though. You can contact the developer at

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more