How to prevent form spam
spam, forms, and javascript
After publishing a quick little project to support contact forms on static websites, I was asked how spam should be handled.
Preventing common spam really isn’t all that hard, so I figured I’d write down a couple of techniques that should be useful for any contact form, comments section or really any form that accepts user input.
While there’s no silver bullet against spam bots, it’s easy enough to make it inconvenient enough for spammers to bother.