CAPTCHA

Posted on February 11th, 2007 in Software development by chris

Every day we learn something new.  I publish an insignificant little non-profit website about a local folly called Alfred’s Tower.  You can view the site at www.AlfredsTower.info.  It has an ASP.NET feedback form where visitors can submit comments.  The comments are sent by email to me and the sender receives an acknowledgement email thanking them for taking the trouble to make a contribution.

Recently the feedback form has been ‘found’ by spammers who are now using it to send several emails a day containing the URLs of their websites.  I have amended my code so that the sender doesn’t receive an email acknowledgement when a URL is included in the text, but the spam keeps coming, presumably sent by some automated process.  This is when I turned my attention to CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart).  This is a challenge to the user of a web form that attempts to determine whether the form is being used by a human or by an automated process.  The test usually takes the form of an image that displays jumbled, overlapping, or distorted letters and numbers, and the user is asked to copy the characters into a textbox.  If the user correctly transposes the characters they are assumed to be human because computer programs are not good at this kind of test.

CAPTCHA testI decided to add such a test to my ASP.NET 2.0 web form.  A quick Google found a few paid-for controls that appeared to meet my needs, but since the website is not commercial I didn’t want to spend $50 or $100 that I wouldn’t be able to recoup.  After a little more hunting I found exactly what I was looking for; a free, public domain offering from Peter Bromberg that doesn’t generate images, it actually forms the text characters in HTML at runtime (see eggheadcafe.com).  This is arguably a better method than displaying a distorted image because the generated text is easy to read by everyone who isn’t visually impaired, whereas some of the more sophisticated CAPTCHA controls are hard to use because the distorted text is difficult to interpret even by intelligent humans.  The picture above shows an example of the random text generated Peter Bromberg’s code.

Since introducing this method no spam messages have been received from this form.

A chewable toothbrush? Whatever next?

Posted on February 10th, 2007 in Uncategorized by chris

Two chewable toothbrushesA recent car journey to Burton-upon-Trent caused me to visit several motorway service stations.  The toilets of each had a prominently positioned machine selling the Fuzzy Brush chewable toothbrush.  If ever there was an invention that I didn’t know I needed, this was it!  I bought two for £1, mainly out of admiration for whoever invented this device and then persuaded their backers to fund the placement of vending machines for it in every motorway toilet (well the gents’ toilets anyway).

The brush is dispensed in a translucent green plastic sphere that is fiddly to open but which eventually splits into two halves.  The instructions state: “For instant results simply place the soft brush in your mouth and chew”.  My personal opinion is that chewing the brush is exactly like chewing a large piece of gristle.  The sensation is best described as unpleasant, and it is very hard for the unpractised tongue to guide the brush over all surfaces of the teeth.  The brush is impregnated with a cleansing chemical (the tiny disc of documentation states its ingredients as ‘Xylitol, Aroma, Aqua, Polydextrose’.  To a non-chemist like myself that last ingredient looks suspiciously like a sugar, which surely accelerates tooth decay rather than inhibiting it.  However after a few minutes of uncomfortable chewing the aromatic chemicals did leave the mouth feeling fresher.  My personal choice though would be to keep a normal toothbrush and toothpaste in the car, for use as required.

Later…I see they have their own website: http://www.fuzzybrush.co.uk/