Bot detection with AJAX
A really pain aspect of managing a website is the constant influx of bots which are dedicated to spam. Even a website with low traffic can be the target of a bot, since this website is linked by another one. The result is that the comments are wasted by spam and the read of an article with its responses become awful. Moreover, the situation is getting worst because of the increase of the number of bots and the ease of use of the programs behind these bots.
Many solutions are used to fight against bots, but each one has its own advantages/disavantages and efficiency. We can make two categories : solutions that try to avoid the bot for posting (captcha audio, video and text for example), and solutions that analyze the text submitted in a form in order to find out that it wasn't written by a human (bayesian filter for example).
The first implementation tells us who is human or not. Bots appear in red. It works by adding a new entry in a database when a new connection is made. And when a human event occurs, it updates this entry by telling that it's not a bot. I have made another implementation in which a form appears when the user moves the mouse or presses a key. I will try to adapt this script to Dotclear in order to make an antispam.
I will provide the full source code soon.