Configure Spam Keywords
Last modified by Vincent Massol on 2026/08/14 19:08
Steps
Spam Detection When Saving a Page only refuses a save when the document matches one of the patterns listed on the AntiSpam.Keywords page, so building that list is what makes the mechanism do anything at all; the same patterns are reused by the "Check for Spam" button of Delete Spam Pages and Users.
- Open the AntiSpam application home page.
- Click "Spam Keywords" in the "Configuration" box.

- Click "Edit".
- Add one pattern per line, each written as a Java regular expression.

- Click "Save".
- The "Spam Keywords" page lists one pattern per line, and every following save whose document matches one of them is refused:

FAQ
Are the patterns literal text or regular expressions?
Regular expressions, so metacharacters are active: a literal dot matches any character, and a short pattern matches inside longer words.
Can a subwiki have its own keywords?
Yes, through a per-wiki keyword page described in AntiSpam Configuration.
Why is a page full of obvious spam reported as not spam?
Because no pattern matched it. "Check for Spam" reports that page by page, so you can add the missing pattern before cleaning anything.
How much of the document do the patterns see?
The whole document, not only its content field. See Spam Detection When Saving a Page.