DEV Community

Discussion on: My secret to putting my email on my website without getting spammed

Collapse
 
sgzadrian profile image
Adrian Sanchez

Hey nice trick!
Here is another classic... Instead of adding a captcha you add an extra input to your forms and make it invisible with CSS. When the form is sended you just need to validate that the field it's empty, if not, that's probably because a bot filled it.

Collapse
 
amitavroy7 profile image
Amitav Roy • Edited

Yes, this is what is known as honeypot @adrian . But this JavaScript approach is nice. Very interesting article.