|
NAMENet::Akismet - Perl interface to Akismet - comment and trackback spam fighter SYNOPSIS my $akismet = Net::Akismet->new(
KEY => 'secret-baba-API-key',
URL => 'http://example.blog.net/',
) or die('Key verification failure!');
my $verdict = $akismet->check(
USER_IP => '10.10.10.11',
COMMENT_USER_AGENT => 'Mozilla/5.0',
COMMENT_CONTENT => 'Run, Lola, Run, the spam will catch you!',
COMMENT_AUTHOR => 'dosser',
COMMENT_AUTHOR_EMAIL => 'dosser@subway.de',
REFERRER => 'http://lola.home/',
) or die('Is the server here?');
if ('true' eq $verdict) {
print "I found spam. I am a spam-founder!\n";
}
METHODS
If verification of the key was unsuccessful new() returns "undef".
NOTESAlthough almost all comment characteristics are optional, performance can drop dramatically if you exclude certain elements. So please, supply as much comment detail as possible. SEE ALSO
AUTHORNikolay Bachiyski <nb@nikolay.bg> Help, modifications and bugfixes from:
COPYRIGHT AND LICENSECopyright (C) 2006, 2007, 2008 by Nikolay Bachiyski This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available. $Id: Akismet.pm 38 2008-06-05 17:15:12Z humperdink $
|