Form spam can be a real headache. It has been reported that slightly more than half of all Internet traffic originated with automated programs, or bots. Many masquerade as people in order to post spam comments on blogs, harvest email addresses for spammers, rig online polls, and all sorts of annoying stuff.

To mitigate this problem and give websites hosting forms a way to distinguish between real people and bots, CAPTCHA was created at Carnegie Mellon University back in 2000. CAPTCHA stands for β€œCompletely Automated Public Test to tell Computers and Humans Apart”. The most well known and widely used CAPTCHA services today are called reCAPTCHA and hCAPTCHA.

Both of these have a client-side and a server-side component. A bunch of tutorials exist to help developers to implement these services in a variety of languages and with a number of frameworks. Adding the client-side bits for both services is reasonably straightforward, but the server side of reCAPTCHA or hCAPTCHA is not always that simple.

This is why I created a free service called reCAPTCHAme. reCAPTCHAme works with both reCAPTCHA as well as hCAPTCHA. Either of these can be implemented on any website or webapp regardless of programming language, framework or development environment and without writing a single line of server-side code.

All that is needed to secure a form is to add the client-side code below, point the form at the reCAPTCHAme service and include the final form processing page in a hidden tag. reCAPTCHAme will verify the token and pass the form on to the processing page in the hidden tag if it passes the test. Failed form submissions are stored in the reCAPTCHAme app and can be downloaded there.

Here are the steps to follow to implement reCAPTCHAme with reCAPTCHA and with hCAPTCHA

reCAPTCHA

https://developers.google.com/recaptcha/docs/v3

hCAPTCHA

https://docs.hcaptcha.com/

reCAPTCHAme

Then head over to reCAPTCHAme and follow these three steps:

https://recaptchame.com/docs.html

Check out the reCAPTCHAme contact page to see an example of how to implement the hCAPTCHA service. For an example of the reCAPTCHA service, head over to our partner site Form2Channel.com.

When you are done, test your form submissions. If you are human - and I am guessing you are - they should arrive on your form processing page and in your system. You can also find them in your account in the reCAPTCHAme app.