Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7710 Näkymät

Hi,
I generated Google ReCaptcha v3 in Odoo with a 0.5 score. But whenever I try to submit a form I get a " suspicious activity detected by Google reCapthca" error even though Iower the score.
Anyone faced with the same issue? Any suggestion on how can I protect my forms without Google reCaptcha? Thanks.

Avatar
Hylkää
Paras vastaus

got the same.

In my case in logs was:
"WARNING odoo odoo\\.addons\\.google_recaptcha\\.models\\.ir_http:\\ Trial\\ captcha\\ verification\\ for\\ ip\\ address\\ XXX\\.XXX\\.XXX\\.XXX\\ failed\\ error\\ codes\\ \\['incorrect\\-captcha\\-sol'\\]\\.\\ "

solution:
go\\ to\\ Google\\ reCaptcha\\ admin\\ console\\ https://www.google.com/recaptcha/admin/
in Domains section add proper domains names

Avatar
Hylkää
Tekijä

Thank you, it is solved!

hi cavuu
in the domain section, if we would like to try it first in the localhost and i entry the domain as localhost and still get the error message, is it because the localhost i entry as domain or maybe anything else?

Paras vastaus

Hi,

To set up Google reCAPTCHA in Odoo for a local environment, you can follow these steps:


1. Create Site Key and Secret Key:

Go to the Google reCAPTCHA admin console ( https://www.google.com/recaptcha/admin/create ).

Create a new reCAPTCHA by entering a label for the reCAPTCHA.

Under the "Domains" section, add localhost (or your specific domain, if necessary).

Example: Add localhost for local development or add a custom domain if you are testing on a specific local setup.

After entering the required details, click the Submit button.

Reference Screenshot: https://webkul.chatwhizz.com/share/screenshot/67777568ee1b4e073aed42c7


2. Retrieve the Site Key and Secret Key:

After submitting the form, you will be redirected to a page where you'll find the site key and secret key.

Keep both keys handy for the next step.


3. Add Keys to Odoo Settings:

Open the Odoo admin interface and navigate to the settings page.

Locate the section for Google reCAPTCHA (typically under "General Settings").

Paste the site key and secret key you obtained earlier into the respective fields.

Reference Screenshot: https://webkul.chatwhizz.com/share/screenshot/67777982f2e9336a27cd0220

4. Test the Contact Us Page:

Go to your Odoo Contact Us page and make sure you are opening the odoo with the localhost and port not with the ip and port. For exp -> http://localhost:8017/contactus

For exp -> http://localhost:8017/contactus


Fill out the form and submit the form to verify everything is working properly. Ref> https://webkul.chatwhizz.com/share/screenshot/67777b0974dfab06b5aa140f https://webkul.chatwhizz.com/share/screenshot/67777b0974dfab06b5aa140f


Now, your Odoo instance should be set up with Google reCAPTCHA on the contact form.

If you still face any issues or want further assistance you can reach us at support@webkul.com

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
tammik. 21
2417
5
heinäk. 19
4900
1
toukok. 16
3860
3
huhtik. 16
9950
2
kesäk. 15
8566