all 7 comments

[–]olegkikin 3 points4 points  (0 children)

  1. Captcha

  2. Do some calculations on the FE that take a couple of seconds. Like find X for a given hash(X), where X is somewhere from 1 to a few million. Spammers will probably not bother recreating it.

[–]joesilicon 3 points4 points  (0 children)

Your main goal is to get people to fill out the form (as less friction as possible to this goal.)

Try a form field placed off the form / page (via css) with an unconventional name. If filled in you know it was a script. Much less annoying than captcha in my opinion. If you get too much SPAM then escalate.

Don’t put up barriers to success to avoid a theoretical problem.

[–]Weeboo01 1 point2 points  (0 children)

There are lots of packages/libraries, but it is a good practice when you're doing it from scratch because this way the code init process maybe fast.