2009-01-17 04:39:11 +01:00
|
|
|
[[!template id=plugin name=blogspam author="[[Joey]]"]]
|
2012-03-26 17:03:35 +02:00
|
|
|
[[!tag type/auth type/comments]]
|
2009-01-17 04:39:11 +01:00
|
|
|
|
|
|
|
This plugin adds antispam support to ikiwiki, using the
|
|
|
|
[blogspam.net](http://blogspam.net/) API. Both page edits and
|
2009-01-26 05:02:11 +01:00
|
|
|
[[comment|comments]] postings can be checked for spam. Page edits that
|
|
|
|
appear to contain spam will be rejected; comments that look spammy will be
|
|
|
|
stored in a queue for moderation by an admin.
|
2009-01-17 04:39:11 +01:00
|
|
|
|
2009-04-22 19:35:17 +02:00
|
|
|
To check for and moderate comments, log in to the wiki as an admin,
|
|
|
|
go to your Preferences page, and click the "Comment Moderation" button.
|
|
|
|
|
2015-01-03 16:02:20 +01:00
|
|
|
The plugin requires the [[!cpan JSON]] perl module.
|
2019-02-10 17:56:41 +01:00
|
|
|
The [[!cpan LWPx::ParanoidAgent]] Perl module is recommended,
|
|
|
|
although this plugin can also fall back to [[!cpan LWP]].
|
2009-01-17 05:07:02 +01:00
|
|
|
|
2009-01-17 04:46:10 +01:00
|
|
|
You can control how content is tested via the `blogspam_options` setting.
|
2015-01-02 21:41:42 +01:00
|
|
|
The list of options is [here](http://blogspam.net/api/2.0/testComment.html#options).
|
2009-01-17 04:46:10 +01:00
|
|
|
By default, the options are configured in a way that is appropriate for
|
2009-04-26 19:50:33 +02:00
|
|
|
wiki content. This includes turning off some of the more problematic tests.
|
|
|
|
An interesting option for testing is `fail`, by setting it (e.g.,
|
|
|
|
`blogspam_options => 'fail'`), *all* comments will be marked as SPAM, so that
|
|
|
|
you can check whether the interaction with blogspam.net works.
|
2009-01-17 04:39:11 +01:00
|
|
|
|
|
|
|
The `blogspam_pagespec` setting is a [[ikiwiki/PageSpec]] that can be
|
|
|
|
used to configure which pages are checked for spam. The default is to check
|
|
|
|
all edits. If you only want to check [[comments]] (not wiki page edits),
|
2011-01-24 21:59:15 +01:00
|
|
|
set it to "postcomment(*)". Posts by admins are never checked for spam.
|
2009-01-17 04:39:11 +01:00
|
|
|
|
|
|
|
By default, the blogspam.net server is used to do the spam checking. To
|
|
|
|
change this, the `blogspam_server` option can be set to the url for a
|
|
|
|
different server implementing the same API. Note that content is sent
|
|
|
|
unencrypted over the internet to the server, and the server sees
|
|
|
|
the full text of the content.
|