Dotclear blogging software and a captcha plugin
October 27th, 2007
I really like the blog software I am using, dotclear version 1.2.7.1. I only have one problem. It is developed almost exclusively in French. That isn’t a totally bad thing, but my French is barely passable on a really good day. All the comments, documentation, and most of the original site configuration were in French. I was able to find and translate almost everything myself (see here for the lone exception…). Thankfully the php and xhtml are extremely clear and well written (which is a huge part of why I like this package).
The problem is that I have been receiving a lot of comment spam the last few days and I have not yet found a good captcha plugin in English. This one has potential, but I was hoping to do something that wouldn’t require me sitting down and rewriting all the tables, etc., from French to English. I would love to find a simple arithmetic based captcha, so the site wouldn’t require the use of images and could remain fully accessible and usable, even to people using text-only browsers.
Does anyone out there know of anything suitable?
Entry Filed under: General













9 Comments Add your own
1. xavier | October 27th, 2007 at 6:35 pm
I have modify the css so that the website field in the comments page is now hiden. As a result, a human user cannot see it but the spam robot can. I have also modify the php code to test if this field is empty or not. If it is not empty, I just reject the comment.
I got *zero* spams with this method
zero.
2. matthew | October 27th, 2007 at 6:57 pm
That’s not a bad idea, xavier. Thank you.
I’m not opposed to people who leave real comments having a link, though. Hmm. Maybe I could create an additional input box that is human-invisible, but robot visible, and do basically the same thing.
I’ll have to think about this while I wait to see if anyone else has a good idea. I probably won’t get around to implementing anything until Monday at the earliest, so maybe someone will give an even better idea over the weekend.
3. Michael Gauthier | October 27th, 2007 at 11:58 pm
You could try using reCAPTCHA recaptcha.net/. It is free for personal use and is a more technically correct solution than hiding things with CSS.
4. matthew | October 28th, 2007 at 5:33 pm
Okay! reCAPTCHA for the win. Thanks for the recommendation, Michael! I will write a followup blog post detailing how to include it in dotclear. It wasn’t difficult, and I like that it is designed with security in mind, that it is designed to be accessible with an audio option, and that users are helping to digitize books for open access. See the upcoming blog post for more details.
EDIT: I confess…I have reCAPTCHA installed, but it is not yet configured correctly. I’m having trouble following the logic flow in dotclear (it would probably help if I could find documentation in a language I can actually read well, but that’s the price I pay for using dotclear, and the only complaint I have so far about it). If anyone knows where the comment post error handling is done, please let me know. I think I have read every php file on my hard drive. It could be that I’m just too tired to see something right in front of my eyes, so I’m going to quit now and get some sleep. Enjoy the look of the captcha, even though it isn’t actually being processed yet.
EDIT #2: I need to do something soon. I had a ton of new spam this morning in comments on old threads. Hopefully I will have some free time later today to get something working. reCAPTCHA is my first choice, but if I can’t wrap my mind around it quickly enough, I may take the easy way out and use something else for the time being.
EDIT #3: I broke the commenting system temporarily. I installed the captcha system I originally linked to in my post, followed the instructions, and for some reason I got the following error:
Fatal error: Class ‘dcCaptcha’ not found in /home/*******/form.php on line 50
Which merely contained the code that inserts the captcha there and calls the function. Odd. I’m going to play around and see why the software isn’t acknowledging the existence of a class that I can clearly see exists…I wish I could have made reCAPTCHA work, at least it would display correctly, even if it didn’t do anything.
In the meanwhile, I guess I still have to be vigilant and find/delete spam manually.
5. matthew | October 30th, 2007 at 9:16 am
I am officially frustrated. I have the captcha up and working perfectly on my testbox. When I upload it to this server, I get the error above. For some reason dotclear is not finding the class for the captcha, even though everything is the same here as it is on the testbox…at least as far as I can tell. Obviously something must be different. Okay, I’m still looking. If commenting is broken for the moment, this is why.
6. matthew | October 30th, 2007 at 9:22 am
Woo hoo! I found my problem. I had moved the site configuration file to a non-default location for security purposes, and I had failed to update a config.php file.
Everything should be working now.
7. Trevor | October 30th, 2007 at 11:38 am
Why not use Akismet or Bad Behaviour? You’ll get close to the same amount of protection, without inconveniencing your readers.
8. matthew | October 30th, 2007 at 11:43 am
Trevor: because I had never heard of either. I’m doing some reading now. Thanks for the recommendations. For those who don’t have them, and so I don’t lose them, here are the links I found: Askimet and Bad Behavior
9. Matthew Helmke (dot) Net &hellip | April 20th, 2008 at 5:22 pm
[...] will recall from my last post that I wanted an accessible anti-spam measure for this dotclear blog because of a recent rise in [...]
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed