 | Plugin Availability
The Akismet plugin is available in the blojsom add-on bundle. This is a separate download from the blojsom.war file. |
Availability
Available as of blojsom 2.29.
Description
The Akismet moderation plugin checks comments and trackbacks using the Akismet
service. If Akismet returns a response that the submission was spam, the comment or trackback can be moderated or deleted automatically.
Installation and Setup
After downloading the blojsom add-on bundle, copy the blojsom-addon-plugins-{version}.jar, commons-httpclient-3.0.jar, and akismet-java-1.0.jar file into your /WEB-INF/lib directory.
In your global /WEB-INF/plugin.properties file, add the following line:
akismet-moderation=org.blojsom.plugin.akismet.AkismetModerationPlugin
In your individual blog.properties file, there are a number of properties that control how this plugin operates.
| Property |
Description |
Default value |
| akismet-plugin-api-key |
Akismet API key. This property is required or this plugin will not do anything on submission of a comment or trackback. |
|
| akismet-plugin-delete-spam |
Determines if the comment or trackback should be deleted automatically if it is determined as spam by Akismet. |
false |
| akismet-plugin-automatic-approval |
If Akismet determines the submission is not spam, it can be marked automatically as approved. |
false |
You may also want to add the following lines to your /WEB-INF/classes/log4j.properties file to control the amount of information in your log file from the HttpClient library. By default, this library generates a great deal of debug information that can fill up your log file quickly and cause unnecessary delays for your blog.
log4j.logger.org.apache.commons.httpclient=ERROR
log4j.logger.httpclient=ERROR