Using the Asirra HIP To Prevent Spam on your Wordpress Blog

URL

http://research.microsoft.com/asirra/WordPressPlugin/asirra-wordpress-plugin-1.1.tgz

Installation

  1. You must have the php curl module installed. On debian, for example:
    	apt-get install php4-curl
    
  2. Unpack the plugin:
    	cd /path-to/my-wordpress-blog
    	tar -C wp-content/plugins/ -xzf asirra-wordpress-plugin-1.1.tgz
    
  3. Insert the following line in your comments.php file, inside the <form> tag. I suggest inserting it before the <input ... value="Submit Comment"> button to place the Asirra box at the end of the comment form:
    	<?php display_asirra(); ?> 
    
  4. Fix comments.php. Change the id and name of the submit input element to something other than "submit" (which masks the JavaScript form.submit() function).
    	<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    	
    becomes:
    	<p><input name="submitBtn" type="submit" id="submitBtn" tabindex="5" value="Submit Comment" />
    	
  5. Activate the plugin using the WordPress admin interface: Under the Plugins tab, click "Activate" on the Asirra row.

Non-License

This wordpress plugin (the two .php files and the .js file) are in the public domain.