hello, i’m having a problem with recaptcha. i’ve added my domain to google/recaptcha and have the site key and secret key. i’ve added the code to my page and it seems to be communicating properly because when i check the box it displays the check mark after a few seconds. however, my form is ABLE to be submitted without pressing the recaptcha box (meaning it is easily bypassed).
1) my question is, how can i make the recaptcha required for the form to process correctly? by the way, i’m not sending an email with the form, i’m posting to salesforce.
2) since i’m not sending an email through the form, is the secret key required to be loaded into the contact-form-recaptcha page? If it is necessary to be loaded into that page, it seems like the directories are publicly accessible (if someone knows the directory structure). am i missing something? i noticed that when i navigate to contact-form-recaptcha.php the page doesn’t load, but it does for all other php file names.
initially i’m trying to get it working on the contactus.html page, and once it’s working i’ll be copying it to the contact forms in the footer of each page.
1) I saw that you make the instructions for recaptcha of the forum FAQ. On the porto 7.0.0 don’t is necessary any extra configuration for the recaptcha anymore. Remove the code of “recaptcha” on the ajax:
This also will fix an error that it’s happening on the file view.contact.js which prevents the form validation.
2) If someone try access the files directly will not be able to see the secret key, since the value are not being displayed and just it’s a value inside a variable.
Regarding when access the contact-form-recaptcha.php it’s returning error 500. Error 500 can be caused by various reasons. Please share the log file of you server with us, so we can check what error it’s occuring and help you. Probably some syntax error. Also please share with us all your contact-form-recaptcha.php code.