Skip to topic | Skip to bottom
Home
Search:

TWiki
TWiki.BlackListPluginr1.4 - 06 Jun 2004 - 19:09 - IntRigeritopic end
You are here: TWiki > BlackListPlugin

Start of topic | Skip to actions

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)
    • Set DEBUG = 0

  • 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: Automatically updated list of IP addresses based on BANLIST configuration
    • IP address %BLACKLIST{ action="" value="" }%
    • Current list: %BLACKLIST{ action="ban_show" }%

  • 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)
    • Set LOGACCESS = 1

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:
    1. Using above form, add the IP address of one of your workstations to the BANLIST
    2. 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
    3. 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

Plugin Author: TWiki:Main/PeterThoeny
Plugin Version: 05 Apr 2004 (V1.001)
Change History:  
05 Apr 2004: Fixed bug in event log (requiring update of earlier Plugin versions); doc updates
04 Apr 2004: Added WHITELIST and BANLIST
21 Mar 2004: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle 99%, FormattedSearch 99%, BlackListPlugin 97%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/BlackListPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/BlackListPluginDev

Related Topics: TWikiPreferences, TWikiPlugins, Google blacklist directory

-- TWiki:Main/PeterThoeny - 05 Apr 2004
to top


You are here: TWiki > BlackListPlugin

to top

Copyright © 1999-2008 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this tool? Send feedback (in English, Francais, Deutsch or Dutch).