AllAboutShare.com

Technology Share | Knowledge Share | Experience Share
President signs broadband data collection bill (CNET)
CNET - President Bush on Friday signed into law a bill that would facilitate the collection of data regarding broadband access in the United States, though most of the actions required by the law have already been accomplished by federal regulators.
RSS Feed Integration by TheFeedTool

12.01

2007

Math Comment Spam Protection Plugin

This plugin for Wordpress 1.5.2, 2.0.x and 2.3 asks the visitor making the comment to answer a simple math question. This is intended to prove that the visitor is a human being and not a spam robot.

Example of such question:

Spam Protection

This plugin does not require JavaScript or cookies. It uses a special encryption function; the result of the question is being passed via a hidden field. The result is being compared with the value entered by the visitor – after encrypring this value as well.

Download the plugin here : Plugin Homepage

Installation

This plugin can be installed in 5 easy steps:

  • Download the plugin (see “Downloads” above).
  • Decompress the .zip archive and put the files into your plugins directory (/wp-content/plugins/) or into a sub directory of the plugins directory.
  • Enable the plugin in the WordPress Plugins admin page.
  • Go to Options / Math Comment Spam, adjust the options and save.
    Important: You need to save the options when you use this plugin the first time or if you have updated from a previous version.
  • Add code to the comments.php of your theme. In the following an example for the Wordpress standard theme (Kubrick):
    <?php/****** Math Comment Spam Protection Plugin ******/
    if ( function_exists('math_comment_spam_protection') ) {
    $mcsp_info = math_comment_spam_protection(); ?>
    <p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="4" />
    <label for="mcspvalue"><small>Spam protection: Sum of <?php echo $mcsp_info['operand1'] .’ + ‘ . $mcsp_info['operand2'] . ‘ ?’?></small></label>
    <input type=”hidden” name=”mcspinfo” value=”<?php echo $mcsp_info['result']; ?>” /></p>
    <?php } // if function_exists… ?>
    Add this code for example right after the field for the website URL.


No Comment

Hi, there is no comment avalible yet, Be The First!

Leave a Reply