create new tag
, view all tags


Obscure dirty words in TWiki topics


This plugin obscures a list of abuse words in TWiki pages. Occurrences of these words are replaced in topic view mode by asterisks (*) except for the first character.


The following bullet contains banned words:

  • Buy cheap Cialis and Viagra

Expected output:

  • Buy cheap C***** and V*****

Plugin Settings

Overload plugin settings in Main.TWikiPreferences by prefixing the name of the setting with ABUSEPLUGIN_, such as ABUSEPLUGIN_ABUSEWORDS

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Obscure dirty words in TWiki topics

  • Banned words list:
    • Set ABUSEWORDS = cialis, fuck, fucked, fucking, viagra

  • Debug flag, see output in twiki/data/debug.txt:
    • Set DEBUG = 0

Plugin Installation & Configuration

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 TWiki server.

  • For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.

  • Or, follow these manual installation steps:
    • Download the ZIP file from the Plugins home (see below).
    • Unzip AbusePlugin.zip in your twiki installation directory. Content:
      File: Description:
      data/TWiki/AbusePlugin.txt Plugin topic
      lib/TWiki/Plugins/AbusePlugin.pm Plugin Perl module
    • Set the ownership of the extracted directories and files to the webserver user.

  • Plugin configuration and testing:
    • Run the configure script and enable the plugin in the Plugins section.
    • Test if the installation was successful: See example above.

Plugin Info

Plugin Author: TWiki:Main.RahulMundke, TWiki:Main.PeterThoeny
Copyright: © 2003 TWiki:Main.RahulMundke
© 2011 TWiki:Main.PeterThoeny
© 2008-2011 TWiki:TWiki.TWikiContributor
License: GPL (GNU General Public License)
Plugin Version: 2011-07-10
Change History:  
2011-07-10: TWikibug:Item6725: Change global package variables from "use vars" to "our"
2011-02-25: TWikibug:Item6638: Use ABUSEWORD plugin setting instead of hard-coded filename for abuse words; adding docs -- TWiki:Main.PeterThoeny
2003-11-20: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins.Benchmark: GoodStyle nn%, FormattedSearch nn%, AbusePlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/AbusePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/AbusePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/AbusePluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 AbusePlugin.md5 r3 r2 r1 manage 0.2 K 2011-07-10 - 22:55 PeterThoeny  
Compressed Zip archivetgz AbusePlugin.tgz r3 r2 r1 manage 4.1 K 2011-07-10 - 22:55 PeterThoeny  
Compressed Zip archivezip AbusePlugin.zip r4 r3 r2 r1 manage 5.4 K 2011-07-10 - 22:55 PeterThoeny  
Unknown file formatEXT AbusePlugin_installer r1 manage 3.4 K 2011-07-10 - 22:55 PeterThoeny  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2013-10-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.