Wiki source code of AntiSpam Configuration
Last modified by Vincent Massol on 2026/08/14 19:08
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
8.1 | 1 | All the configuration lives in the ##AntiSpam## space of the **main** wiki: six list pages that ship with the extension, the ##AntiSpam.Logs## page it creates on the first match, and two settings in the wiki administration. It is read from there whichever wiki a save happens on, so a farm has one set of lists rather than one per wiki. Each list page holds **one entry per line**, and a line starting with a hash sign is a comment. |
![]() |
3.1 | 2 | |
| 3 | |=Page|=Title in the interface|=Holds|=Written by | ||
| 4 | |##AntiSpam.Keywords##|"Spam Keywords"|One Java regular expression per line. All the lines are joined with a pipe into a single expression.|You | ||
| 5 | |##AntiSpam.Excludes##|"Space Excludes"|Full references of the spaces that Spam Checking must not inspect.|You | ||
| 6 | |##AntiSpam.KnownUsers##|"Known Users"|Full references of the accounts that are protected.|You | ||
| 7 | |##AntiSpam.KnownGroups##|"Known Groups"|Full references of the groups whose members are protected.|You | ||
| 8 | |##AntiSpam.IPAddresses##|"Banned IP Addresses"|Addresses that may no longer save a page.|Spam Checking | ||
| 9 | |##AntiSpam.DisabledUsers##|"Disabled Spam Users"|Accounts that were disabled for submitting spam.|Spam Checking | ||
| 10 | |##AntiSpam.Logs##|"Logs"|One line per keyword match: the author, the page, and the keyword with the text surrounding it. Created on the first match, so it does not exist on a fresh installation.|Spam Checking | ||
| 11 | |||
| 12 | A page named ##Keywords-## followed by a wiki id, in the same space, holds keywords that apply to that wiki only. It is read in addition to ##AntiSpam.Keywords##, never instead of it. | ||
| 13 | |||
| 14 | The two settings are in the wiki administration, under "Other" and then "AntiSpam": | ||
| 15 | |||
![]() |
10.1 | 16 | {{image reference="antispam-admin-section.png" size="extra" alt="The AntiSpam section of the global administration, showing the Is Spam Checking Active checkbox and the XFF header position field"/}} |
![]() |
3.1 | 17 | |
| 18 | |=Setting|=Default|=Effect | ||
| 19 | |"Is Spam Checking Active?"|Selected|Clearing it stops the save-time inspection entirely. Spam Cleaning is unaffected. | ||
| 20 | |"Position of the IP address in the XFF header"|Empty|Which entry of the ##X-Forwarded-For## header holds the client address, counted from the end: 0 is the last entry, 1 the last but one, and so on for each further proxy. Left empty, or set out of range, the **first** entry of the header is used. |
