DumbSpam : a dotclear plugin to stop spam in comments
The way to install this script is quite simple :
- Get the file http://www.sygus.net/atwork/dumbspam/dumbspam-1.0.zip
- Extract it and put the file form_ajax.php in the directory in which the current theme is. For example : /dotclear/themes/currentTheme/
- Open the file /dotclear/themes/currentTheme/post.php and replace the line which call form.php :
<?php include dirname(FILE).'/form.php'; ?>
<?php include dirname(FILE).'/form_ajax.php'; ?>
It should work for the bots which try to post spam. If the bot has already come, and has saved the form's page in his memory before the installation of the script, it can go beyond this protection. In this case, another modification is needed. If the weblog is new, obviously this problem doesn't exist.
So the modification is the following : in the file form_ajax.php, replace the line :
<input name="c_nom" id="c_nom" type="text" ...
<input name="c_nomform" id="c_nom" type="text" ...
And in the file /dotclear/layout/prepend.php, replace the line :
$c_nom = trim($_POST'c_nom');
$c_nom = trim($_POST'c_nomform');
Yes, you need to modify the core of dotclear ! I don't see any other solution.