DEV Community

Discussion on: How I avoided spam form submits in my side project.

Collapse
 
vincentbourdeau profile image
Vincent Bourdeau

Hey Deffrin :) - I am actually using a similar technique. What I like to do is to let the form action="" attribute empty ...and with the help of Javascript ( After a short ~3 seconds delay using setTimout() ) I Will inject the proper action="" value. I think this takes care of 98% of those spam bots out there.

Cheers

Collapse
 
deffrin profile image
deffrin joseph • Edited

Yes. Now I am not receiving spam registrations. I thought like you said. I will try that next time.