Home Forums Porto Template making recaptcha required on a form

This topic contains 9 replies, has 2 voices, and was last updated by  Support2 5 days, 15 hours ago. This post has been viewed 81 times

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #10027944

    damose
    Participant

    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.

    thank you in advance.



    Template Version: 7
    #10027949

    Support2
    Keymaster

    Hello,

    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.

    Kind Regards,

    Rodrigo.


    • This reply was modified 1 week ago by  Support2.
    #10027969

    damose
    Participant
    This reply has been marked as private.
    #10027974

    Support2
    Keymaster
    This reply has been marked as private.
    #10027979

    damose
    Participant
    This reply has been marked as private.
    #10027980

    Support2
    Keymaster
    This reply has been marked as private.
    #10027981

    damose
    Participant
    This reply has been marked as private.
    #10027982

    Support2
    Keymaster

    Hello Damien,

    Thanks for the kind words 🙂

    The issue now is the double quotes encoded, as you can see on the image below:

    Probably the quotes has encoded when you copy/paste from here.

    Kind Regards,

    Rodrigo.


    #10027983

    damose
    Participant
    This reply has been marked as private.
    #10027984

    Support2
    Keymaster
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)