Creating Anti-Spam Bot Verifications for Web Forms

I have been recently asked how to create one of these web form verifications things (CAPTCHA images) which will confirm that a real human is sending your form, rather than a bot sending you ads for Viagra and other happy pills.