TWiki home TWiki > TWiki > BlackListPlugin (r1.1 vs. r1.5) TWiki webs:
Main | TWiki | Plugins | Sandbox | Patterns
TWiki . { Home | Welcome | Register | Changes | Topics | Index | Search | Go }
 <<O>>  Difference Topic BlackListPlugin (r1.5 - 22 Jan 2005 - PeterThoeny)
Changed:
<
<

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.

>
>

This is a simple utility to keep black sheep 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, such as multiple registrations or rapid topic updates indicating Wiki:WikiSpam.

Added:
>
>

To fight Wiki-spam, the Plugin can also add a rel="nofollow" parameter to external URLs. Search engines will not follow links that have this parameter, taking away the incentive to add spam to TWiki.

Added:
>
>

  • Add a rel="nofollow" parameter to external URLs. Use this is to fight Wiki-spam. Search engines will not follow the link if a URL has a nofollow parameter, such as <a href="http://spammer.com/" rel="nofollow">. Specify topic age in hours for which the nofollow parameter should appear (set it to a value that gives you enough time to remove spam); set it to -1 to add the nofollow parameter unconditionally to external URLs; or 0 to disable: (-1, 0, 1...N)
    • Set NOFOLLOWAGE = -1
Changed:
<
<

Plugin Version: 19 Jan 2005 (V1.003)
>
>

Plugin Version: 22 Jan 2005 (V1.004)
Added:
>
>

22 Jan 2005: Added NOFOLLOWAGE handling
Changed:
<
<

-- TWiki:Main/PeterThoeny - 19 Jan 2005

>
>

-- TWiki:Main/PeterThoeny - 22 Jan 2005


 <<O>>  Difference Topic BlackListPlugin (r1.4 - 19 Jan 2005 - PeterThoeny)
Changed:
<
<

  • 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
>
>

  • BANLIST configuration, comma delimited list of: Points for registration, points for each save and upload, points for view raw, points for other actions like view, threshold to add to BANLIST, measured over time (in seconds)
    • Set BANLISTCONFIG = 20, 5, 1, 20, 120, 300
Changed:
<
<

Plugin Version: 05 Apr 2004 (V1.001)
>
>

Plugin Version: 19 Jan 2005 (V1.003)
Added:
>
>

19 Jan 2005: Added score for "view raw" to address e-mail harvester issue
Changed:
<
<

-- TWiki:Main/PeterThoeny - 05 Apr 2004

>
>

-- TWiki:Main/PeterThoeny - 19 Jan 2005


 <<O>>  Difference Topic BlackListPlugin (r1.3 - 06 Apr 2004 - PeterThoeny)
Changed:
<
<

This is a simple utility to keep black sheeps away from a public TWiki site. There are three lists of IP addresses:

>
>

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:

Changed:
<
<

    • Set BLACKLIST = 203.88.152., 219.65.75.
>
>

    • Set BLACKLIST = 203.88.152., 203.88.155., 219.65.75.
Changed:
<
<

    • Set BLACKLISTMESSAGE = You are black listed at the TWiki web site due to excessive access or suspicious activities. Please contact aclemens@xs4allNOSPAM.nl if you got on the list by mistake. Black listed IP addresses will be submitted to major blacklist databases.
>
>

    • Set BLACKLISTMESSAGE = You are black listed at the TWiki web site due to excessive access or suspicious activities. Please contact site administrator aclemens@xs4allNOSPAM.nl if you got on the list by mistake. Black listed IP addresses will be submitted to major blacklist databases.
Changed:
<
<

    • Add the IP address of a PC to BLACKLIST and access TWiki from that PC. After a one minute timeout, you should see the message "You are black listed at TWiki" if accessing the view script; or an 500 Internal Server Error for other scripts.
>
>

    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
Changed:
<
<

Plugin Version: 04 Apr 2004 (V1.001)
>
>

Plugin Version: 05 Apr 2004 (V1.001)
Added:
>
>

05 Apr 2004: Fixed bug in event log (requiring update of earlier Plugin versions); doc updates
Changed:
<
<

-- TWiki:Main/PeterThoeny - 04 Apr 2004

>
>

-- TWiki:Main/PeterThoeny - 05 Apr 2004


 <<O>>  Difference Topic BlackListPlugin (r1.2 - 03 Apr 2004 - PeterThoeny)
Changed:
<
<

This is a simple utility to keep black sheeps away from a public TWiki site. Add the IP address of a malicious user to the BLACKLIST setting. Users on that list will have every page access delayed by one minute and will get an error message.

>
>

This is a simple utility to keep black sheeps away from a public TWiki site. There are three lists of IP addresses:

  • 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.

Changed:
<
<

  • Blacklist: (Comma delimited list of IP addresses, partial addresses OK)
    • Set BLACKLIST = 203.88.152, 219.65.75
>
>

  • 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., 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.18

  • Message for users on BLACKLIST and BANLIST:
    • Set BLACKLISTMESSAGE = You are black listed at the TWiki web site due to excessive access or suspicious activities. Please contact aclemens@xs4allNOSPAM.nl if you got on the list by mistake. Black listed IP addresses will be submitted to major blacklist databases.
Changed:
<
<

  • Log access of users on blacklist to data/debug.txt: (1 or 0)
>
>

  • Log access of users on BLACKLIST and BANLIST: (1 or 0)
Changed:
<
<

Plugin Version: 21 Mar 2004 (V1.000)
>
>

Plugin Version: 04 Apr 2004 (V1.001)
Added:
>
>

04 Apr 2004: Added WHITELIST and BANLIST
Changed:
<
<

TWiki:Plugins/Benchmark: GoodStyle 99%, FormattedSearch 99%, BlackListPlugin 99%
>
>

TWiki:Plugins/Benchmark: GoodStyle 99%, FormattedSearch 99%, BlackListPlugin 97%
Changed:
<
<

-- TWiki:Main/PeterThoeny - 21 Mar 2004

>
>

-- TWiki:Main/PeterThoeny - 04 Apr 2004


 <<O>>  Difference Topic BlackListPlugin (r1.1 - 21 Mar 2004 - PeterThoeny)
Added:
>
>

%META:TOPICINFO{author="PeterThoeny" date="1079831296" format="1.0" version="1.1"}%

Black List Plugin

This is a simple utility to keep black sheeps away from a public TWiki site. Add the IP address of a malicious user to the BLACKLIST setting. Users on that list 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

  • Blacklist: (Comma delimited list of IP addresses, partial addresses OK)
    • Set BLACKLIST = 203.88.152, 219.65.75

  • Log access of users on blacklist to data/debug.txt: (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:
    • Add the IP address of a PC to BLACKLIST and access TWiki from that PC. After a one minute timeout, you should see the message "You are black listed at TWiki" if accessing the view script; or an 500 Internal Server Error for other scripts.

Plugin Info

Plugin Author: TWiki:Main/PeterThoeny
Plugin Version: 21 Mar 2004 (V1.000)
Change History:  
21 Mar 2004: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle 99%, FormattedSearch 99%, BlackListPlugin 99%
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 directoryexternal link

-- TWiki:Main/PeterThoeny - 21 Mar 2004


Topic BlackListPlugin . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.1 - 21 Mar 2004 - 01:08 GMT - PeterThoeny
Revision r1.5 - 22 Jan 2005 - 08:32 GMT - PeterThoeny
Copyright © 2003 by the contributing authors. All material on this collaboration tool is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback