Archive for June, 2007

ReCAPTCHA against Spam.

June 28, 2007

In the last two weeks, spam engines finally have found their way to Kyusl signup page. In the Apache log it looks like getting to the form and firing the send button right away, all the data filled in correctly. As Kyusl is used to store site links, among other things, it’s a natural target for folks dumping the stinking stuff onto the Net.

My first idea was to find the most simple PHP script that will supposedly use GD library to generate some distorted text to be presented as CAPTCHA challenge. Just like everyone else does. But I have found an interesting link on Wikipedia. Carnegie Mellon University, known for its software-related research and software itself, has an interesting project that has developed a kind of Web service that does everything for you: RECAPTCHA.

Integrating the checks is very easy and they provide ready to use code in many languages including PHP. I have tested it with Firefox and IE, and after adding the new checks into the signup code, the spam signups have disappeared. Hmmmm…. as of today.

Backup a Web site and MySQL, sending backups by E-mail.

June 8, 2007

To do backups of Web sites, I have written a short shell script that creates backups including files and MySQL database. It creates a TAR/GZIP archive and sends it by e-mail (to myself of course). For more detail and script source code, please have a look at http://www.kyusl.com/scr.php?mod=01 .