/
AntiWikiSpamPlugin.txt
77 lines (53 loc) · 3.46 KB
/
AntiWikiSpamPlugin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%META:TOPICINFO{author="SvenDowideit" date="1124819774" format="1.1" version="1.4"}%
---+!! <nop>%TOPIC%
This plugin attempts to reduce the instance of Wiki Spam by using the
[[http://moinmoin.wikiwikiweb.de/][MoinMoin]]
[[http://moinmoin.wikiwikiweb.de/AntiSpamGlobalSolution][AntiSpamGlobalSolution]]
regex's. Anytime it detects that a saved page contains a string in the regex
list, it _only_ refuses to save it.
*Major premise is not to create any unnecessary load on the server and not to use excess server resources by holding connections open.*
All its processing is _only_ done on save, or on attach.
(Foswiki:Extensions/BlackListPlugin does alot of processing on _every_ topic operation,
including view)
It uses a timeout on save to check if the list has changed, so if there are no
saves, there is no un-needed network traffic.
To manually update the list, click [[%SCRIPTURLPATH{"rest"}%/%TOPIC%/forceUpdate][here]]
%TOC%
---++ Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, i.e. ==%<nop>INTERWIKIPLUGIN_SHORTDESCRIPTION%==
* One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic:
* Set SHORTDESCRIPTION = prevents registered Wiki Spam from being saved
* where to get the regex list to check for
* Set ANTISPAMREGEXLISTURL = http://arch.thinkmo.de/cgi-bin/spam-merge
* time in minutes between attempts to get a new version of the list
* Set GETLISTTIMEOUT = 60
* Local spam list (checked before the larger shared one)
* Set LOCALANTISPAMREGEXLISTTOPIC = %SYSTEMWEB%.LocalAntiWikiSpamPluginList
* to ensure that only <nop>WikiAdmins can make changes here
* Set ALLOWTOPICCHANGE = %MAINWEB%.AdminGroup
---++ Plugin Installation Instructions
__Note:__ You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running.
* Download the ZIP file from the Plugin web (see below)
* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
| *File:* | *Description:* |
| ==data/System/%TOPIC%.txt== | Plugin topic |
| ==data/System/%TOPIC%.txt,v== | Plugin topic repository |
| ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module |
* Visit =configure= in your Wiki installation, and enable the plugin in the {Plugins} section.
* Test if the installation was successful:
---++ Plugin Info
| Plugin Author: | Foswiki:Main.SvenDowideit - http:///www.WikiRing.com|
| Plugin Version: | 4 Sept 2007 (V1.2) |
| Change History: | <!-- versions below in reverse order --> |
| 14 Dev 2008: | updated for Foswiki v1.0 |
| 4 Sept 2007: | updated to 4.2 |
| 22 Jul 2006: | resurected it for TWiki 4.0 due to demand for a low resource AntiSpam solution |
| 22 Aug 2005: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | internet acces to update the spam list |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Foswiki:Extensions/Benchmark: | %SYSTEMWEB%.GoodStyle nn%, %SYSTEMWEB%.FormattedSearch nn%, %TOPIC% nn% |
| Plugin Home: | http://foswiki.org/Extensions/%TOPIC% |
| Feedback: | http://foswiki.org/Extensions/%TOPIC%Dev |
| Appraisal: | http://foswiki.org/Extensions/%TOPIC%Appraisal |
__Related Topics:__ %SYSTEMWEB%.DefaultPreferences, %USERSWEB%.SitePreferences, [[%SYSTEMWEB%.Plugins][Plugins]]