In the ongoing fight against comment spam and as a result of overlooking RWB website upkeep for a while, I came across a very good looking comment spam blocker, SecureImage. A refresh of a plugin written for WP 1.2 by Dave Fullard.

SecureImage is written by bishopthom, building on the original plugin by Fullard.

The installation is pretty simple. I did it by copy-and-pasting the code into secureimage.php in the plugins dir.

[Warning: if you get something crazy like:

Warning: Cannot modify header information - headers already sent by (output started at /home/my/path/mydomain.com/blog/wp-content/plugins/secureimage.php:270) in /home/my/path/mydomain.com/blog/wp-login.php on line 7

The likely reason is that there are some CRs BELOW the bottom close /php> tag. Remove these and all *should* be well.]

Go to your WP admin console and activate the plugin.

One more, if you install it correctly, and you keep getting ”
find the below section of code, and comment it out.

If the user is logged in, dont prompt for code
if (isset($user_ID))
return $post_ID;

$convertprg = $this->settings[’convertpath’];

if (!file_exists($convertprg)) {
die(_e(’Couldn\’t find your convert utility. Check that you have ImageMagick installed.’, ‘SecureImage’));
//}

This section of code checks that convert is installed in the correct place (/usr/bin).

Once this is done, you should get a deformed image, which you must enter the characters before your comment can be saved.

Look here for more info


No Responses to “Wordpress SecureImage anti-comment spam plugin”  

  1. No Comments

Leave a Reply