-
AuthorPosts
-
November 5, 2018 at 10:18 am #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 helpKR,
Victoria- This topic was modified 6 years ago by Victoria.
November 5, 2018 at 10:20 am #1029817The capture option is of course in both contact forms activated
KR,
VictoriaNovember 5, 2018 at 2:56 pm #1029914Same problem here. I get hundreds of mails a day via the contacts forms. But just since a few weeks (after enfold 4.5 update)
November 7, 2018 at 4:29 pm #1030899it’s a pity we don’t get any support…
November 8, 2018 at 1:55 am #1031048Hi,
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,
IsmaelNovember 11, 2018 at 9:29 pm #1032340Hi 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,
VictoriaNovember 13, 2018 at 1:44 am #1032826Hi,
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,
IsmaelNovember 13, 2018 at 11:32 am #1032940Hi 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,
VictoriaNovember 14, 2018 at 11:03 am #1033416Hi,
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,
IsmaelNovember 14, 2018 at 7:28 pm #1033625This reply has been marked as private.November 15, 2018 at 4:10 pm #1034015Hi,
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,
IsmaelNovember 16, 2018 at 12:10 pm #1034407Hello 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/v3I don’t see there ‘SECRET_KEY’, only ‘SITE_KEY’
<script src=”https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key”></script>
<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,
VictoriaNovember 19, 2018 at 5:14 am #1034995Hi,
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,
IsmaelNovember 19, 2018 at 1:13 pm #1035169Hallo Ismael,
but it looks all correct… please, see the screenshot… I can’t find any mistakes…KR,
VictoriaNovember 20, 2018 at 8:02 am #1035458Hi,
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):39Did you remove the old v2 key? Please generate another v2 key and let’s try both.
Best regards,
IsmaelNovember 20, 2018 at 8:37 am #1035473Hey!
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!
IsmaelNovember 21, 2018 at 3:52 pm #1036114Hallo 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,
VictoriaNovember 21, 2018 at 3:53 pm #1036115Yes, 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 ago by Victoria.
November 21, 2018 at 4:21 pm #1036147Dear 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,
VictoriaNovember 22, 2018 at 11:31 am #1036447Hi,
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,
IsmaelNovember 22, 2018 at 12:07 pm #1036473Dear 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.
KR,
Victoria- This reply was modified 6 years ago by Ismael.
November 23, 2018 at 9:44 am #1036882Hi,
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,
IsmaelNovember 23, 2018 at 11:39 am #1036923Hello 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=sharingKR,
VictoriaNovember 23, 2018 at 6:14 pm #1037043Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.