Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Using ReCaptcha on Odoo Forms - Suspicious activity detected by Google reCaptcha

形象
odoo
形象
丢弃
2 答案
0
形象
odoo
最佳答案

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

2 注释
形象
丢弃
形象
odoo
-

Thank you, it is solved!

形象
odoo
-

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?

0
形象
odoo
最佳答案

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

形象
丢弃