Formează protecție împotriva spamului¶
Cloudflare Turnstile and Google reCAPTCHA v3 protect website forms against spam and abuse. They attempt to distinguish between human and bot submissions using non-interactive challenges based on telemetry and visitor behavior.
Important
We recommend using Cloudflare Turnstile, as reCAPTCHA v3 may not be compliant with local data protection regulations.
Notă
All pages using the Form, Newsletter Block, or Newsletter Popup snippets are protected by both tools. Web login, sign-up and password reset pages are also protected.
Vezi și
„Ghidul Google reCAPTCHA v3 <https://developers.google.com/recaptcha/docs/v3>`_
Configurația Turnstile Cloudflare¶
Pe Cloudflare¶
In the dashboard’s navigation sidebar, go to .
On the Overview page, click Add widget.
Add a Widget name to easily identify it.
Click Add Hostnames, enter a custom hostname (e.g., example.com or subdomain.example.com), then click Add twice.
Selectați un Mod widget:
The Managed mode is recommended, as it allows Turnstile to prompt visitors to confirm they are human when necessary.
Pentru modurile Non-interactiv și Invizibil, vizitatorii nu sunt niciodată solicitați să interacționeze. În modul Non-interactiv, poate fi afișat un widget de încărcare pentru a avertiza vizitatorii că Turnstile protejează formularul; cu toate acestea, widgetul nu este acceptat de Odoo.
Notă
Dacă verificarea Turnstile eșuează, vizitatorii nu pot trimite formularul și este afișat următorul mesaj de eroare:
Faceți clic pe Creați.
Cheile generate sunt apoi afișate. Lăsați pagina deschisă pentru comoditate, deoarece în continuare este necesară copierea cheilor în Odoo.
Pe Odoo¶
From the database dashboard, open the Settings app. Under Integrations, enable Cloudflare Turnstile, then click Save.
Open the Cloudflare Turnstile page, copy the Site Key, and paste it into the CF Site Key field in Odoo.
Deschideți pagina Cloudflare Turnstile, copiați Secret Key și inserați-o în câmpul CF Secret Key din Odoo.
Faceți clic pe Salvați.
Sfat
Navigate to in your Cloudflare account to View analytics and access additional settings.
configurare reCAPTCHA v3¶
Atenționare
este posibil ca reCAPTCHA v3 să nu fie în conformitate cu reglementările locale privind protecția datelor.
Pe Google¶
Enter a Label for the website, e.g., example.com.
Leave the reCAPTCHA type set to Score based (v3).
Introduceți unul sau mai multe Domenii (de ex., example.com sau subdomain.example.com).
Under Google Cloud Platform, a project is automatically created or selected if one already exists for the logged-in Google account. Click the field to select a project manually or rename the automatically created project.
Acceptați termenii și condițiile.
Faceți clic pe Trimiteți.
Cheile generate sunt apoi afișate. Lăsați pagina deschisă pentru comoditate, deoarece în continuare este necesară copierea cheilor în Odoo.
Pe Odoo¶
From the database dashboard, open the Settings app. Under Integrations, activate Enable reCAPTCHA.
Atenționare
Do not uninstall the Google reCAPTCHA integration module, as it would also remove many other modules.
Open the Google reCAPTCHA page, click COPY SITE KEY, and paste it into the Site Key field in Odoo.
Open the Google reCAPTCHA page, click COPY SECRET KEY, and paste it into the Secret Key field in Odoo.
Change the default Minimum score (
0.70) if necessary, using a value between0.00and1.00. The higher the threshold is, the harder it is to pass the reCAPTCHA, and vice versa.Faceți clic pe Salvați.
You can notify visitors that reCAPTCHA protects a form. To do so, navigate to the form and open the website editor. Then, click somewhere on the form, go to the Style tab, and, in the Block section, enable Show ReCAPTCHA Policy.
Notă
Dacă verificarea reCAPTCHA eșuează, este afișat următorul mesaj de eroare:
Sfat
Statisticile și setările suplimentare sunt disponibile pe „pagina de administrare reCAPTCHA a Google <https://www.google.com/recaptcha/admin/>`_. De exemplu, puteți primi alerte prin e-mail dacă Google detectează trafic suspect pe site-ul dvs. sau vedeți procentul de solicitări suspecte, ceea ce vă poate ajuta să determinați scorul minim corect.