Preventing spam in comments/contact forms with TypePad AntiSpam2010-01-10 22:16:05Another few hours of my life lost due to spammers. (And a few Mac OS quirks i don't want to get into now : ) ). Anyway.. If you have any kind of form on your website you are guaranteed that you will receive spam in one form or another. To make it the least annoying for your real customers and users I think it's the best way to employ some kind of passive spam checking.
![]() So I simply downloaded the Python Akismet library and created a very simple utility function and base form in django to do the checking. So only when spam is recognized the user will have to fill out the captcha. The whole magic lies in simply changing the baseurl: from akismet import Akismet # base url for TypePad AntiSpam would be: # api.antispam.typepad.com/1.1/ Akismet.baseurl = settings.AKISMET_BASEURL You can also take a look at my full code for the form, which uses the Captcha Field from SCT. Hey, we have Signatures !!! Great, isn't it ? ;) Posted by Herbert Poul 0 Comments |
Please login to post a reply.