Plugin: LMSpamBotBehavior

Spam check plugin for LMCommentModerator that analyzes the comment author client behavior.

General plugin info
Author:Leo
Current version:1.0.0
Download:NP_LMSpamBotBehavior_v100.zip
Support: Plugin comments or forum thread
Compability:Nucleus CMS 3.60, NP_LMCommentModerator 1.0.0

Plugin overview

The NP_LMSpamBotBehavior plugin is a spam fighting plugin implementing the NP_LMCommentModerator SpamCheck API. It analyzes how the client of the comment author behave when a comment is posted. If the client fits a bot behavior profile, will the spam check return Spam.

The NP_LMSpamBotBehavior plugin just implements the SpamCheck API events. For this plugin to do any work is it required that the NP_LMCommentModerator plugin is installed and used for comment moderation. The NP_LMCommentModerator plugin can be downloaded from the NP_LMCommentModerator plugin page.

Installation

  • Upload the NP_LMSpamBotBehavior.php file and the lmspambotbehavior directory from the zip file to the Nucleus CMS plugins directory (nucleus/plugins) on your web server.
  • Go to the Plugins page in the admin area. You should be able to select the plugin in the dropdown list under the "Install New Plugin" section and press the "Install Plugin" button.

Upgrade

  • Take a backup of the current plugin files. You will need these if you want to rollback to the previous version after the upgrade.
  • Take a backup of the database used for you Nucleus installation.
  • Replace the old plugin files with the new ones. Do not uninstall the plugin.
  • If a plugin data upgrade is needed, will an upgrade plugin data option be available on the NP_LMSpamBotBehavior plugin admin page. Choose this option to upgrade the plugin data.
  • After the plugin data upgrade has been performed may a rollback option and a commit option be available on the NP_LMSpamBotBehavior plugin admin page. Not all upgrades support the rollback and commit option.
  • If you are not pleased with the new version of the plugin you may use the rollback option to rollback the plugin data upgrade. After the rollback of the plugin data upgrade you have to replace the new plugin files with the old plugin files.
  • If you are pleased with the new version of the plugin you should use the commit option to commit the plugin data upgrade. After the commit of the plugin data upgrade will any rollback and commit options disappear.

Configuration

The NP_LMSpamBotBehavior plugin has the following options:

  • Delete NP_LMSpamBotBehavior data tables on uninstall - Should the data tables the plugin uses be deleted at uninstall.
  • Enable spam bot behavior check - Should the plugin spam check comments against bot behavior.
  • Enable bot behavior image - Should the plugin use the image behavior check when checking comments against bot behavior. This option is set to No by default. Do not enable this option until after your item skin is set up to use the BotBehaviorImage skin variable. If this option is enabled without the BotBehaviorImage skin variable being set up properly, will all comments that are not white listed be categorized as Spam.

Usage

After the plugin is installed will it automatically be used by the NP_LMCommentModerator plugin to check for spam comments. You may want to set up the image behavior check, as it improves the bot behavior checking.

BotBehaviorImage

Skin variable used to insert a image element with a tiny invisible image on the web page. The image element is used by the NP_LMSpamBotBehavior plugin to analyze the behavior of the client. This skin variable must be inserted on the web page somewhere after the comment form. It is recommended to insert the skin variable in the footer of the web page.

<%LMSpamBotBehavior(BotBehaviorImage)%>

Since the URL for the image element is cloaked you will have to add a rewrite rule for your webserver:

  • Create a .htaccess file to the root directory of your Nucleus CMS installation with the following contents:
    <IfModule mod_rewrite.c>
        RewriteEngine on
    	
        RewriteRule ^image.php$ action.php?action=plugin&name=lmspambotbehavior&type=image [L,QSA]
    </IfModule>
  • If you already have a .htaccess file with rewrite rules for NP_LMFancierURL, you can take the RewriteRule line and add it just bellow the RewriteEngine line in your existing .htaccess file.

Support and Bug reports

For additional support and/or bug reports please use the Nucleus forum plugin announce thread or the plugin page comment section.

Compability

This version of the NP_LMSpamBotBehavior plugin is tested against version 3.66 of LMNucleus CMS. The minimum version of Nucleus CMS needed for using this plugin is 3.60. The minimum version of the NP_LMCommentModerator plugin needed by this plugin is 1.0.0. The mod_rewrite module must be enabled on the web server to use the bot behavior image functionality.

Version History

  • v1.0.0 2014-04-13: by Leo (http://nucleus.slightlysome.net/leo)
    • Initial release.

Download

Download NP_LMSpamBotBehavior v1.0.0. The latest version of the NP_LMSpamBotBehavior plugin can be downloaded from the NP_LMSpamBotBehavior plugin page.

The latest version of the LMCommentModerator plugin can be downloaded from the NP_LMCommentModerator plugin page.


Add Comment

Spam and off topic comments will be deleted.

Allowed BBCode:[b] [i] [u] [s] [color=] [size=] [quote] [code] [email] [url]