Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to Defeat Comment Spam (baekdal.com)
16 points by nickb on Sept 9, 2007 | hide | past | favorite | 2 comments


The best trick (as suggested by Simon G.) is to add a "honeypot" field, such as email or website, that is hidden by CSS (display:none). Spambots will scrape the HTML and fill in this common field. Once something is filled in in this field, you know the comment came from a spammer.


Bad blogger! What have I told you about depending on Javascript for basic functionality?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: