Availability
Available as of blojsom 2.25.
Description
The phrase spam moderation plugin checks for specific phrases within comments and trackbacks. If a phrase is found within the response, the comment or trackback can be moderated or deleted automatically.
There is also an administration plugin to allow you to edit the spam phrases from the web administration console.
Installation and Setup
In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:
<bean id="spamphrase-moderation" class="org.blojsom.plugin.moderation.SpamPhraseModerationPlugin" init-method="init" destroy-method="destroy">
<property name="eventBroadcaster">
<ref bean="eventBroadcaster"/>
</property>
</bean>
<bean id="spamphrase-moderation-admin" class="org.blojsom.plugin.moderation.admin.SpamPhraseModerationAdminPlugin" init-method="init"
destroy-method="destroy">
<property name="servletConfig">
<ref bean="servletConfigFactoryBean"/>
</property>
<property name="authorizationProvider">
<ref bean="authorizationProvider"/>
</property>
<property name="resourceManager">
<ref bean="resourceManager"/>
</property>
<property name="fetcher">
<ref bean="fetcher"/>
</property>
</bean>
The following properties can be set from Weblog Settings | Properties | Set Property
| Property |
Description |
Default value |
| delete-phrasespam |
Determines if the comment or trackback should be deleted automatically if it contains any phrase spam. |
false |
Usage
The phrases used in the spam phrase blacklist file may be either phrases or regular expressions.