Hide the form if there is no referer. Bots usually just go to the form via an url, from a scraped list like domain.com/contact .
But if someone is browsing your site and go to /contact, the previous page (like homepage) would be the referer and the form would show up.
If the form is not showing you can instead add a link to the same page, the visitor wont go anywhere, but the page will reload and they will get a referer if clicked.
So on /contact there could be a link like <a href="/contact">Click here to show the form, we fight spam</a>
Maybe not the best solution but you won't need to have annoying captchas
Or you just add an extra, hidden text input, which the bot will fill. If filled -> don't submit.
The only (client-side) way other than a CAPTCHA type user confirmation would be to write the whole thing dynamically. A lot (but not all) of robots would probably ignore the dynamic content.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.