Simple example of how to use Google reCAPTCHA v2 with PHP.
Useful video tutorial (not mine): https://www.youtube.com/watch?v=xyOu0b6R3m0
Log in to your Google Account, then go to https://www.google.com/recaptcha/admin/create and create a new reCAPTCHA site.
Remember to add the desired domains to the list.
See the index.php
file for an example. Remember to replace the site key and the secret key with yours.