DokuWiki

It's better when it's simple

User Tools

Site Tools


blacklist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blacklist [2016-09-19 07:20] – add "-sk" to deal with SSL certificate and get rid of download statistics. & egrep to get rid of both open and closing pre adamshandblacklist [2023-11-26 02:37] (current) Klap-in
Line 5: Line 5:
 For using a blacklist in DokuWiki: For using a blacklist in DokuWiki:
   * enable the [[config:usewordblock]] option in the config manager (by default on)   * enable the [[config:usewordblock]] option in the config manager (by default on)
-  * edit the ''conf/wordblock.local.conf'' file. You can have a look inside the file ''[[https://github.com/splitbrain/dokuwiki/blob/master/conf/wordblock.conf|conf/wordblock.conf]]'' for a list of existing word blocks.+  * edit the ''conf/wordblock.local.conf'' file. You can have a look inside the file ''[[https://github.com/dokuwiki/dokuwiki/blob/master/conf/wordblock.conf|conf/wordblock.conf]]'' for a list of existing word blocks.
 The file contains [[wp>Regular Expressions]] (Perl compatible) if any of these match saving is disallowed. To understand why a certain text was banned for spam, you can use the [[plugin:whyspam]] plugin to analyze the text. The file contains [[wp>Regular Expressions]] (Perl compatible) if any of these match saving is disallowed. To understand why a certain text was banned for spam, you can use the [[plugin:whyspam]] plugin to analyze the text.
  
 IP based blocking can be done using Apache's [[http://httpd.apache.org/docs/mod/mod_access.html#deny|deny from]] directives or the [[plugin:ipban]] plugin. IP based blocking can be done using Apache's [[http://httpd.apache.org/docs/mod/mod_access.html#deny|deny from]] directives or the [[plugin:ipban]] plugin.
 +
 +===== Adding/removing block words from list =====
 +
 +You can add your own block words by creating a ''conf/wordblock.local.conf'' file and placing your abbreviations.<code - conf/wordblock.local.conf>
 +(long|loud) shouting
 +</code>
 +
 +Disable default block words by prefixing with (''!''):<code - conf/wordblock.local.conf>
 +!woww gold
 +</code>
 +
 +
  
 ===== Blacklist Sources ===== ===== Blacklist Sources =====
Line 20: Line 32:
   $> curl -sk https://meta.wikimedia.org/wiki/Spam_blacklist?action=raw | egrep -v '<?pre>' > conf/wordblock.local.conf   $> curl -sk https://meta.wikimedia.org/wiki/Spam_blacklist?action=raw | egrep -v '<?pre>' > conf/wordblock.local.conf
  
-Don't forget to create conf/wordblock.local.conf file+Don't forget to create ''conf/wordblock.local.conf'' file.
 ===== Logging of blocked Attacks ===== ===== Logging of blocked Attacks =====
  
Line 51: Line 63:
 =====See also===== =====See also=====
   * [[config|Configuring DokuWiki]]   * [[config|Configuring DokuWiki]]
 +  * You can install and use the [[plugin:confmanager|{{https://raw.githubusercontent.com/cosmocode/confmanager/master/admin.svg?16}}]][[plugin:confmanager|Configuration File Manager]] for editing via admin interface of the wiki
blacklist.1474262435.txt.gz · Last modified: 2016-09-19 07:20 by adamshand

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki