Wiki source code of Configure Spam Keywords
Last modified by Vincent Massol on 2026/08/14 19:08
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | [[Spam Detection When Saving a Page>>doc:documentation.extensions.admin.antispam.spam-detection.WebHome]] 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>>doc:documentation.extensions.admin.antispam.delete-spam-pages-users.WebHome]]. | ||
| 2 | |||
| 3 | 1. Open the [[AntiSpam application home page>>doc:documentation.extensions.admin.antispam.open-application.WebHome]]. | ||
| 4 | 1. Click "Spam Keywords" in the "Configuration" box.((( | ||
| 5 | {{image reference="configuration-box.png" size="large" alt="The Configuration box of the AntiSpam home page, next to the Results box, with the Spam Keywords link marked"/}} | ||
| 6 | ))) | ||
| 7 | 1. Click "Edit". | ||
| 8 | 1. Add one pattern per line, each written as a Java regular expression.((( | ||
| 9 | {{image reference="keywords-edit.png" size="extra" alt="The Spam Keywords page in the wiki editor, with three comment lines followed by three regular expressions"/}} | ||
| 10 | ))) | ||
| 11 | 1. Click "Save". | ||
| 12 | 1. The "Spam Keywords" page lists one pattern per line, and every following save whose document matches one of them is refused:((( | ||
| 13 | {{image reference="spam-keywords-page.png" size="large" alt="The Spam Keywords page listing three regular expressions, one per line, below three comment lines"/}} | ||
| 14 | ))) |