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