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.

Configurația Turnstile Cloudflare

Pe Cloudflare

  1. Create or log in to a Cloudflare account.

  2. In the dashboard’s navigation sidebar, go to Application security ‣ Turnstile.

  3. On the Overview page, click Add widget.

  4. Add a Widget name to easily identify it.

  5. Click Add Hostnames, enter a custom hostname (e.g., example.com or subdomain.example.com), then click Add twice.

  6. Selectați un Mod widget:

    • The Managed mode is recommended, as it allows Turnstile to prompt visitors to confirm they are human when necessary.

      Widget de verificare umană Cloudflare Turnstile
    • 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:

      Mesaj de eroare de verificare Cloudflare Turnstile
  7. 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

  1. From the database dashboard, open the Settings app. Under Integrations, enable Cloudflare Turnstile, then click Save.

  2. Open the Cloudflare Turnstile page, copy the Site Key, and paste it into the CF Site Key field in Odoo.

  3. Deschideți pagina Cloudflare Turnstile, copiați Secret Key și inserați-o în câmpul CF Secret Key din Odoo.

  4. Faceți clic pe Salvați.

Sfat

Navigate to Application security ‣ Turnstile 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

  1. Sign up or sign in to a Google account.

  2. Open the reCAPTCHA website registration page.

  3. Enter a Label for the website, e.g., example.com.

  4. Leave the reCAPTCHA type set to Score based (v3).

  5. Introduceți unul sau mai multe Domenii (de ex., example.com sau subdomain.example.com).

  6. 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.

  7. Acceptați termenii și condițiile.

  8. 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

  1. 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.

  2. Open the Google reCAPTCHA page, click COPY SITE KEY, and paste it into the Site Key field in Odoo.

  3. Open the Google reCAPTCHA page, click COPY SECRET KEY, and paste it into the Secret Key field in Odoo.

  4. Change the default Minimum score (0.70) if necessary, using a value between 0.00 and 1.00. The higher the threshold is, the harder it is to pass the reCAPTCHA, and vice versa.

  5. 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.

mesaj de politică reCAPTCHA afișat pe un formular

Notă

Dacă verificarea reCAPTCHA eșuează, este afișat următorul mesaj de eroare:

Mesaj de eroare de verificare Google reCAPTCHA

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.