Version 1.0.6 of Peter’s Random Anti-Spam Image for WordPress
Here’s a spin-off of Peter’s Custom Anti-Spam Image for WordPress that will generate random anti-spam images instead of custom anti-spam images.
I’ll repeat what I wrote in the original post: there are quite a few plugins to combat blog comment spam, and they usually come in two varieties: one that filters and identifies spam posts and another that forces users to identify a random word displayed as an image in order to block spambots that cannot read your image. You can (and should) use both varieties of spam filters in tandem. Spambots are getting smarter and some can read images. Most, however cannot.
The goal of this spin-off plugin is so that webmasters don’t have to create the words themselves (instead the plugin file creates some random text like “2fkt9s”). This plugin aims to keep the readability of the Custom Anti-Spam version, as well as other features like random fonts and colours.
Without further ado…
Version 1.0.6 of Peter’s Random Anti-Spam Image Plugin for WordPress [August 2, 2010: Minor code tweak for WordPress 3.0.]
Version 1.0.5 [August 2, 2008: Added a setting $ras_wpconfig for the absolute path to wp-config.php for WordPress 2.6+ users who have moved either wp-config.php or the wp-content folder from the default locations.]
Version 1.0.4 [May 31, 2008: Fixed the registration form protection for WordPress 2.5. Pre-WordPress 2.5 users who want to use the registration form protection must use Version 1.0.3 of this plugin or lower.]
Version 1.0.3 [May 24th, 2008: For efficiency reasons, image and audio generation is now run directly through the plugin file.]
Version 1.0.2 [March 13th, 2008: Minor tweak to ensure compatibility with WordPress 2.5.]
Version 1.0.1 [February 10th, 2008: New option to disable random stretching of the wav files. Made the operation to stretch the wav files silent to the server(thanks Angelo!). Blocked indexing of audio file links by search engines (thanks Lucky!).]
Version 1.0.0 [January 20th, 2008: Added registration form protection (WordPress 2.1 and higher required) and a corresponding e-mail blacklist. For registration form protection, set $ras_reg_protection equal to â€œtrueâ€. Also tweaked the audio file generation with wav files to be more robust against spambots.]
Version 0.2.6 [November 20th, 2007: Minor code tweak to the image and audio generation code so that full page generation doesn't occur unnecessarily (thanks Steve!).]
Version 0.2.5 [November 11th, 2007: Made a few minor efficiency and display tweaks, and switched up the fonts.]
Version 0.2.4 [October 13th, 2007: Tweaked a database command to be more compatible, allowed a site address override (over the WordPress site URL value), and removed some redundant code.]
Version 0.2.3 [September 30th, 2007: Fixed a bug that was blocking trackbacks and pingbacks for the past few versions (a stupid oversight on my part in the order of some code.]
Version 0.2.2 [September 26th, 2007: Fixed minor CSS detail, allowed for different folder names for the plugin, and renamed mp3 class to avoid the possibility of clashes with other class names.]
Version 0.2.1 [September 10th, 2007: Fixed a bug whereby the audio files werenâ€™t generating in all Internet Explorer setups. Fixed a bug with the "don't force registered users to enter the anti-spam word" setting. Changed table creation method so that PHP installations with low memory allocated to scripts will still be able to create the necessary tables. Also, made all display strings more easily customizable, to enhance translation support.]
Version 0.2.0 [September 3rd, 2007: The plugin now uses a database for truly random words and can generate mp3 audio files of the words. Clicking on the image now generates an audio file, and you can generate new text by clicking a link next to the image.]
Version 0.1 [July 28th, 2007: First version!]
Unzip the entire folder random-anti-spam to your plugins directory, so that the path is wp-content/plugins/random-anti-spam/. Then activate the plugin via your WordPress admin section. The plugin should work directly “out of the box”, but all instructions for customization are found by editing the plugin file (in your WordPress control panel, go to Plugins > Edit Plugins).