MicroAkismet

MicroAkismet package contains a straightforward set of functions for talking to the Akismet blog-spam protection system.
Download

MicroAkismet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Gaby Vanhegan
  • Publisher web site:
  • http://vanhegan.net/software/akismet/

MicroAkismet Tags


MicroAkismet Description

MicroAkismet package contains a straightforward set of functions for talking to the Akismet blog-spam protection system. MicroAkismet package contains a straightforward set of functions for talking to the Akismet blog-spam protection system. This is intended as a simple and compact method for adding Akismet protection to any user-submitted content.Installation1. To begin using the functions, download the latest version and unzip the script.2. Place the akismet.inc.php file somewhere in your web root, and load the functions using include(), or better still, include_once():3. Obtain a valid WordPress API key, if you do not already have one, from:http://wordpress.com/If you don't have an account you will need to create one. Once you have an account, your API key can be found at the bottom of this page:http://wordpress.com/profile4. In the "User editable data" section, at the top of the code, put in your WordPress API key and the home page of the blog being protected. The User Agent can be changed to suit your application. If it is not a blog that is being protected, change the home page to the comments page or forum page that is being protected.UsageThere are three static functions for talking to Akismet: aksimet_check( $vars ) Check if a comment is spam or not aksimet_spam( $vars ) Re-classify a comment as spam aksimet_ham( $vars ) Re-classify a comment as ham (not spam) Each function takes one argument, $vars, which is a list of information about the comment that is being checked. $vars *must* contain at least this information $vars The IP address of the person that posted the comment $vars The User-Agent of the person that posted the comment The "blog" value (the homepage of the blog that this post came from) is added automatically by the code. The following extra information can also be added, to help Akismet classify the message more accurately: $vars The body of the comment itself, the content that was submitted $vars The content of the HTTP_REFERER header (note the spelling) $vars Permalink to the comment $vars May be blank, comment, trackback, pingback, etc $vars Submitted name with the comment $vars Submitted email address $vars Commenter URL In PHP, you can also add the contents of the $_SERVER array to this list, which gives extra information to Akismet, and further increases the accuracy of their system.What's New in This Release:· A class version and a static function version have been created. · They are the same code, but one is wrapped in a PHP5 compatible class, giving more flexibility.


MicroAkismet Related Software