Dashboard > blojsom 3.0 > ... > Plugins > Spam Phrase Moderation Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Spam Phrase Moderation Plugin
Added by David Czarnecki, last edited by David Czarnecki on Jul 10, 2007  (view change)
Labels: 
(None)

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.

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators