Quantcast
Channel: Weblog of Michael Cutler » Spam
Viewing all articles
Browse latest Browse all 9

WP Plugin » SpamKit Plugin 0.3 – Time-Based-Tokens to Fight Spam

$
0
0

This is a(nother) minor release of SpamKit Plugin which provides some cool new features. This is checked into Subversion over at WP-Plugins.org and you can download the new version here spamkit-plugin.php.

New Features:

* Minor improvements to the use of TBT’s, any token used within 5 seconds of being generated will be declared invalid. This is to stop the majority of automated clients parsing and sending the TBT token.

* Added a ‘web badge’ for display on your blog pages, it shows the number of spam comments caught with SpamKit. To use it simply add the following where you want the badge to appear:

PHP:
  1. <?php
  2.    if ( function_exists("spamkit_badge") ) {
  3.       spamkit_badge();
  4.    }
  5. ?>

Alternatively, you can have this spamkit_badge method return you the HTML markup by calling spamkit_badge( true ), for example:

PHP:
  1. <?php
  2.    if ( function_exists("spamkit_badge") ) {
  3.       $html = spamkit_badge(true);
  4.       echo $html;
  5.    }
  6. ?>

And it looks like this: SpamKit Plugin for Wordpress: Caught 25 Spam Comments!

* Added a custom pingback to my own blog triggered when the plugin is installed and activated on your own blog. This is used for installation counting and version tracking. Future versions will have this as configurable and optional.

Known Issues:

* The HTML generated by spamkit_badge link’s back to the plugin using an absolute URL (/wp-content/plugins/spamkit-plugin.php) which may not suit everyone’s Wordpress installation. This will be addressed in the next release.

* SpamKit uses temporary files to store the count, saving the image generating part of the script from having to make SQL calls. To do this it is assumed that all systems have a “/tmp” directory which is writable by the user the WWW server is running as. Temporary file names are fairly unique, they are generated by taking the crc32 value of $_SERVER['SERVER_NAME'].


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images