Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #1029815

    Hi!
    I have set 2 contact forms on the website two days ago and today I have hundreds of Emails with viagra offer…. Did I something wrong?
    Would appreciate any help

    KR,
    Victoria

    • This topic was modified 6 years, 1 month ago by Victoria.
    #1029817

    The capture option is of course in both contact forms activated
    KR,
    Victoria

    #1029914

    Same problem here. I get hundreds of mails a day via the contacts forms. But just since a few weeks (after enfold 4.5 update)

    #1030899

    it’s a pity we don’t get any support…

    #1031048

    Hi,

    I’m very sorry for the late response. Have you tried installing security plugins like Sucuri or WordFence? They may be able to block those spams or at least report where they’re coming from.

    For additional security, try to implement the reCAPTCHA widget to the form.

    // https://kriesi.at/support/topic/contact-form-spam-with-privacy-policy-message-false/#post-1030153

    Related thread: https://www.wpbeginner.com/opinion/sucuri-review-how-sucuri-helped-us-block-450000-wordpress-attacks-in-3-months/

    Best regards,
    Ismael

    #1032340

    Hi Ismael,
    it is a pity that the native theme captcha doesn’t work… I would like to try to avoid installing more plugins. Anyway… How can I set the reCAPTCHA in the theme contact form? What should I do? I have already all necessary keys.
    KR,
    Victoria

    #1032826

    Hi,

    You can put this code in the functions.php file:

    // https://pastebin.com/zZXQaLwP

    Just add the public key on this line:

    var captcha = jQuery("<p data-sitekey='PUBLIC KEY HERE' data-callback='onloadCallback' id='reCAPTCHAV2'></p>");
    

    And the secret key here:

    $secret = 'SECRET KEY HERE';
    

    You can create your own options panel and save the keys in your database if you don’t want to put them directly in the snippet.

    Best regards,
    Ismael

    #1032940

    Hi Ismael,
    thank you.
    Do you mean functions-enfold.php? I have not found any other functions.php.
    I put the code (incl. the public and secret keys on the right place), but it still does not work. The capture function does not appear on the pages with contact forms. Should do anything additionally?

    KR,
    Victoria

    #1033416

    Hi,

    You should put it in the functions.php file, not functions-enfold.php. Please post the login details in the private field including the reCAPTCHA keys. We would like to test it.

    Best regards,
    Ismael

    #1033625
    This reply has been marked as private.
    #1034015

    Hi,

    Thanks for the update.

    I didn’t know that reCAPTCHAv2 has been deprecated. Please generate a new key for the reCAPTCHAv3. Don’t forget to add your site in the Domains field.

    // https://www.google.com/recaptcha/

    Add the keys in the functions.php file. You may need to wait for a few minutes.

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

    Best regards,
    Ismael

    #1034407

    Hello Ismael,
    thank you!
    I have changed the both keys now (new generated for reCAPTCHA v3) in the reCAPTCHA code in the functions.php. Should leave this code, which you have sent me before or should I take the new one from here?
    // https://developers.google.com/recaptcha/docs/v3

    I don’t see there ‘SECRET_KEY’, only ‘SITE_KEY’
    <script src=”https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key”></script&gt;
    <script>
    grecaptcha.ready(function() {
    grecaptcha.execute(‘reCAPTCHA_site_key’, {action: ‘homepage’}).then(function(token) {

    });
    });
    </script>

    On my website the button “Send” disappeared…

    Thank you
    KR,
    Victoria

    #1034995

    Hi,

    The recaptcha button is displaying now but there’s a ” Invalid key type” error. Are you sure that those keys are from v3? And did you add the domain in the list?

    Best regards,
    Ismael

    #1035169

    Hallo Ismael,
    but it looks all correct… please, see the screenshot… I can’t find any mistakes…

    KR,
    Victoria

    #1035458

    Hi,

    This is what I get in the console:

    recaptcha__en.js:500 Uncaught Error: Invalid site key or not loaded in api.js: 6Ld5hBQUAAAAAPbwsc7bGO9tE68Io1ZQIl8gamBC
    at Object.nf [as execute] (recaptcha__en.js:500)
    at (index):39

    Did you remove the old v2 key? Please generate another v2 key and let’s try both.

    Best regards,
    Ismael

    #1035473

    Hey!

    This same script is working on another site.

    // https://kriesi.at/support/topic/how-can-i-put-in-the-google-captcha-in-the-enfold-contact-form/

    Cheers!
    Ismael

    #1036114

    Hallo Ismael,
    you saw the screenshot? Looks like all keys are correct…
    sorry I so not understand any more, what I should do. I should generate the new keys for the reCAPTCHA v3 and put these keys on 3 locations in this code.
    var key = ‘6LcvMXsUAAAAAAuqT5QYc9PEb1sdTVBt7v2[…]’;
    $secret = ‘6LcvMXsUAAAAABWm75O4Drme1RC2H[…]’;
    $key = ‘6LcvMXsUAAAAAAuqT5QYc9PEb1sdTVBt7v2[…]’;

    So I did it.
    Would you please send me the code again, which I should put in functions.php?

    Thank you!
    KR,
    Victoria

    #1036115

    Yes, but in your posts https://kriesi.at/support/topic/how-can-i-put-in-the-google-captcha-in-the-enfold-contact-form/ you are talking about reCAPTCHA v2… or not??
    KG,
    Victoria

    • This reply was modified 6 years, 1 month ago by Victoria.
    #1036147

    Dear Ismael, the contact form is not working since 2 weeks… The code you sent me does not work.

    // edited // please use pastebin

    I have generated the new keys v3, but nothing changed… Please help.

    KR,
    Victoria

    #1036447

    Hi,

    I would like to apologize for the late response. Let’s try it again from scratch. I tried to use the v3 script but it didn’t work, so I turned it back to v2. You have to generate the v2 keys now. This is the updated script.

    // https://pastebin.com/L9hwBthv

    Post the v2 keys in the private field and put the script back in the functions.php file.

    Best regards,
    Ismael

    #1036473

    Dear Ismael,
    thank you! I know now, where was the mistake and it was my mistake. Several months ago I have generated the keys v.2 with another google account and now I have seen that. I am sorry.

    The reCAPTCHA v2 looks know. But I still do not see the button “Send” directly unter der reCAPTCHA :-))) Please let me know, how can I get the button “Send” back.

    Home

    KR,
    Victoria

    • This reply was modified 6 years, 1 month ago by Ismael.
    #1036882

    Hi,

    I modified the code a bit but it’s still returning an error response instead of the verification. Did you add the domain in the list? And make sure it’s actually v2, not v3.

    // https://imgur.com/a/mv2Ak9B

    Best regards,
    Ismael

    #1036923

    Hello Ismael,
    yes, I am sure, that it is v2 and the domain admanum.de is also added (s. private content)… :-(
    But the reCAPTCHA works… Or not really?
    https://drive.google.com/file/d/13yFeXqzDYofERMISuybDICO5-sMvVvmd/view?usp=sharing

    KR,
    Victoria

    #1037043

    Hi,

    It’s not working. I just disabled it temporarily to turn the contact form send button back. You may need to search for another solution, a plugin or third party script. Have you tried using the CF7 plugin?

    // https://contactform7.com/recaptcha/

    Best regards,
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.