You are here: TWiki > BlackListPlugin
Black List Plugin
This is a simple utility to keep black sheeps away from a public TWiki site. The site can be protected against excessive page access (e.g. by bad robots) and suspicious activities of users, like multiple registrations or rapid topic updates indicating Wiki-spam.
The Plugin monitors activities by IP address and uses three IP address lists to protect the TWiki site:
- WHITELIST: Manually maintained list of users who should never get on the BANLIST
- BLACKLIST: Manually maintained list of malicious users
- BANLIST: Automatically updated list of users with suspicious activities
Users on the BLACKLIST and BANLIST will have every page access delayed by one minute and will get an error message.
Plugin Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write
%<plugin>_<setting>%, i.e.
%INTERWIKIPLUGIN_SHORTDESCRIPTION%
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Utility to keep malicious users away from a public TWiki site
- Debug plugin: (See output in
data/debug.txt)
- WHITELIST: Comma delimited list of IP addresses; possible to use partial addresses ending in a dot
- Set WHITELIST = 127.0.0.1
- BLACKLIST: Comma delimited list of IP addresses; possible to use partial addresses ending in a dot
- Set BLACKLIST = 203.88.152., 203.88.155., 219.65.75.
- BANLIST configuration, comma delimited list of: Points for registration, points for each save and upload, points for other actions like view, threshold to add to BANLIST, measured over time (in seconds)
- Set BANLISTCONFIG = 30, 5, 1, 150, 300
- Your current score: %BLACKLIST{ action="user_score" }% for IP address 38.103.63.61
- Message for users on BLACKLIST and BANLIST:
- Set BLACKLISTMESSAGE = You are black listed at the Indymedia Documentation Project web site due to excessive access or suspicious activities. Please contact site administrator docs@sos.indymediaSTOPSPAM.org if you got on the list by mistake. Black listed IP addresses will be submitted to major blacklist databases.
- Log access of users on BLACKLIST and BANLIST: (1 or 0)
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 TWiki is running.
- Download the ZIP file from the Plugin web (see below)
- Unzip
BlackListPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
data/TWiki/BlackListPlugin.txt | Plugin topic |
data/TWiki/BlackListPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/BlackListPlugin.pm | Plugin Perl module |
- Test if the installation was successful:
- Using above form, add the IP address of one of your workstations to the BANLIST
- Access TWiki from that workstation
- if you look at a TWiki topic (with the view script) you should see the BLACKLISTMESSAGE (defined above) after a one minute timeout
- else, you should get an 500 Internal Server Error for other scripts
- On a different workstation, remove the IP address of the test workstation from the BANLIST
Known Issues
- The BANLIST does not work until you add and remove an IP address using above form
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins,
Google blacklist directory
--
TWiki:Main/PeterThoeny - 05 Apr 2004
to top