===== Blacklist Test ===== This little script helps to check a text against the [[:blacklist]] - nice for debugging it. '; print "$file line $i: "; print htmlspecialchars($block); print "
".htmlspecialchars($snip)."
"; print ''; } } } header('Content-Type: text/html; charset=utf-8'); ?> Spamcheck

===== Logging of blocked Attacks ===== This small change makes it possible to log blocked attacks in \DATA\meta\wordblock.log and can also be used for block lists debugging.\\ But need a modification of a original DokuWiki file. **File:** \inc\common.php **Search Line:** if(preg_match('#('.join('|',$re).')#si',$text, $match=array())) { return true; } **Change:** if(preg_match('#('.join('|',$re).')#si',$text, $match=array())) { preg_match('#('.join('|',$re).')#si',$text, $match); io_saveFile($conf['metadir'].'/wordblock.log', date($conf['dformat'])."\t".$match[0]."\t".$ID.$_SERVER['REMOTE_USER']."\t".$_SERVER['REMOTE_ADDR'].":".$_SERVER['SERVER_PORT']."\t".gethostbyaddr($_SERVER['REMOTE_ADDR'])."\t".$_SERVER['HTTP_USER_AGENT']."\n",true); return true; }