aboutsummaryrefslogtreecommitdiff
path: root/scripts/blocklist.php
diff options
context:
space:
mode:
authorpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2006-09-30 06:01:04 +0000
committerpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2006-09-30 06:01:04 +0000
commit526956af3a431ab9e3545af09c8bdf8abd6a77e2 (patch)
tree6e4c878a1446fb8db6cb391e0aa6c117dc9401d1 /scripts/blocklist.php
parentffa88bd247de3cd7f17d5f172cf351ac3dbd526e (diff)
downloadpmwiki.svn-526956af3a431ab9e3545af09c8bdf8abd6a77e2.tar.bz2
Updated comments.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@1665 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/blocklist.php')
-rw-r--r--scripts/blocklist.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/blocklist.php b/scripts/blocklist.php
index c7a05f61..1a525d98 100644
--- a/scripts/blocklist.php
+++ b/scripts/blocklist.php
@@ -4,6 +4,37 @@
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. See pmwiki.php for full details.
+
+ This script adds blocklisting capabilities to PmWiki, and can
+ be enabled by simply setting the following in local/config.php:
+
+ $EnableBlocklist = 1;
+
+ With $EnableBlocklist set to 1, this module will search through
+ the Site.Blocklist page, as well as any other pages given by
+ the $Blocklist pages variable, looking for lines of the
+ form "block:some phrase" or "block:/regex/", with "some phrase"
+ and "/regex/" indicating things to be excluded from any
+ posting to the site.
+
+ In addition, if a page contains IP addresses of the form
+ "a.b.c.d" or "a.b.c.*", then any posts coming from hosts
+ matching the address will be blocked.
+
+ There is also an "unblock:..." form, which removes an entry
+ from the blocklist. This is useful for removing specific
+ block items in wikifarms and with automatically downloaded
+ blocklists (below).
+
+ The script also has the capability of automatically downloading
+ blocklists from other sources, such as chongqed.org and
+ and the MoinMaster blocklist. These are configured using
+ the $BlocklistDownload array. An $EnableBlocklist value
+ of at least 10 configures PmWiki to automatically download
+ these external blocklists and refresh them daily.
+
+ More information about blocklists is available in the
+ PmWiki.Blocklist page.
*/