WP Plugin » SpamKit Plugin 0.0 - Time-Based-Tokens to Fight Spam
This is the first release and prototype of SpamKit for Wordpress.
SpamKit was written by Gerard Calderhead; it’s a PHP library that uses secure time-based-tokens to aid validating form post’s and can be used on guestbooks, blogs, form-mailers etc.
It does this by generating a checksum’d and encrypted ‘token’ containing the UNIX-timestamp from when it was generated. This ‘token’ is written out into the form as a hidden field. When the form is posted back to the server, the token’s value is validated. If it is invalid or tampered with validation will automatically fail, if the token has ‘expired’ it will also fail.
I took SpamKit and plugged it into Wordpress to do the following:
- When a comment form is drawn, a time-based-token is generated and inserted as a hidden field in the form.
- Where the comment would normally be approved, SpamKit is used to validate the token; if corrupt, missing or expired the comment is flagged as ‘spam’ preventing any email notification of the comment being posted.
- After the comment has been saved (as ‘spam’) by Wordpress the plugin changes the comment’s status to ‘Awaiting Moderation’ to allow the moderator to delete it at a later date.
The end result is comment-spam sits in the ‘Awaiting Moderation’ list without generating any email to say so.
The third step may not be what everyone desires for the plugin’s functionality but being a prototype there are no option pages to control this as yet.
The SpamKit plugin has been tested on Wordpress 1.5 only and found to operate as expected on even the most liberal configurations.
Installation is simple, there are no configuration options that require changing, simple copy it into the plugins directory and activate it from the administration screen.
Download: spamkit-plugin.zip
Comments, Questions and Feedback welcomed!
Updated [3rd January 2006] - Download link points to wp-plugins.org
About this entry
You’re currently reading “WP Plugin » SpamKit Plugin 0.0 - Time-Based-Tokens to Fight Spam,” an entry on Weblog of Michael Cutler
- Published:
- 6th December 2005 / 11:12pm
Related Entries
- WP Plugin » SpamKit Plugin 0.3 - Time-Based-Tokens to Fight Spam
15th February 2006 - WP Plugin » SpamKit Plugin 0.2 - Time-Based-Tokens to Fight Spam
14th February 2006 - WP Plugin » SpamKit Plugin 0.1 - Time-Based-Tokens to Fight Spam
23rd January 2006 - SpamKit Plugin moved to WP-Plugins.org
3rd January 2006 - SpamKit
8th March 2006
3 Comments
Jump to comment form | comments rss [?] | trackback uri [?]