{"id":30270,"date":"2025-01-10T04:23:36","date_gmt":"2025-01-10T04:23:36","guid":{"rendered":"https:\/\/doc.probance.com\/?post_type=tutoriels&#038;p=30270"},"modified":"2025-01-10T04:23:41","modified_gmt":"2025-01-10T04:23:41","slug":"woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3","status":"publish","type":"tutoriels","link":"https:\/\/doc.probance.com\/en\/knowledge-base\/woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3\/","title":{"rendered":"Woocommerce : Protect your newsletter subscription form with reCatpcha v3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The newsletter subscription form built with our Woocommerce module provides a native honeypot antispam protection, that automatically identified and block information that are not sent by humans. It is however possible and strongly recommended to further protect your form using&nbsp;<strong>reCpatcha v3<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This tutorial will explain how to implement reCaptcha v3 for your newsletter subscription form with in Woocommerce<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ancre1\">1. Generate reCaptcha keys<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You first need to configure your website on a reCaptcha account (a google account works). <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to reCaptcha\u2019s webpage and click on\u00a0<strong>v3 Admin Console<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"654\" src=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32-1024x654.png\" alt=\"\" class=\"wp-image-30271\" srcset=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32-1024x654.png 1024w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32-300x191.png 300w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32-768x490.png 768w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32-1536x980.png 1536w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-32.png 1681w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>The website configuration form will automatically display if no website is set on this account. Fill it up as follows :<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Label<\/strong>\u00a0: Fill with the name of your website.<\/li>\n\n\n\n<li><strong>reCaptcha type<\/strong>\u00a0: select the option Score based (v3) (our Woocommerce module is not reCaptcha v2 compatible)<\/li>\n\n\n\n<li><strong>Domain :<\/strong>\u00a0Fill with the domain of your website. It must not contain \u2018hptps:\/\/www.\u2019<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2137\" height=\"1212\" src=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN.png\" alt=\"\" class=\"wp-image-30280\" srcset=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN.png 2137w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN-300x170.png 300w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN-1024x581.png 1024w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN-768x436.png 768w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN-1536x871.png 1536w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_2_EN-2048x1162.png 2048w\" sizes=\"auto, (max-width: 2137px) 100vw, 2137px\" \/><\/figure>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Click on\u00a0<strong>Submit<\/strong>\u00a0to validate.<\/li>\n<\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>After a short waiting time, two keys will be provided : the<strong>\u00a0Site key<\/strong>\u00a0and the<strong>\u00a0Secret key<\/strong>. You will need both keys to configure reCaptcha in Woocommerce.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2137\" height=\"965\" src=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN.png\" alt=\"\" class=\"wp-image-30277\" srcset=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN.png 2137w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN-300x135.png 300w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN-1024x462.png 1024w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN-768x347.png 768w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN-1536x694.png 1536w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/15_3_EN-2048x925.png 2048w\" sizes=\"auto, (max-width: 2137px) 100vw, 2137px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your website is already setup in reCaptcha, access your administration interface and click on Parameters. You will get the information of your website, and the Site key and Secret key are provided under&nbsp;<strong>reCaptcha keys<\/strong>.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ancre2\">2. Configure reCaptcha in your Optin module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In your WordPress administration pannel, access\u00a0<strong>Probance > Optin.<\/strong>\u00a0<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>In the\u00a0<strong>Newsletter<\/strong>\u00a0section check the\u00a0<strong>Add reCAPTCHA v3<\/strong>\u00a0option.<\/li>\n<\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>The fields<strong>\u00a0Site key<\/strong>\u00a0and\u00a0<strong>Secret key<\/strong>\u00a0will display : fill them with the key provided by reCaptcha.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"292\" src=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-1024x292.png\" alt=\"\" class=\"wp-image-30274\" srcset=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-1024x292.png 1024w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-300x86.png 300w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-768x219.png 768w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-1536x438.png 1536w, https:\/\/doc.probance.com\/wp-content\/uploads\/2025\/01\/image-33-2048x584.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Save your modifications to apply reCaptcha v3 to your form.<\/li>\n<\/ol>\n<div id=\"wpmem_restricted_msg\"><p>This content is restricted to site members.  If you are an existing user, please log in.  New users may register below.<\/p><\/div><div id=\"wpmem_login\"><a id=\"login\"><\/a><form action=\"https:\/\/doc.probance.com\/en\/knowledge-base\/woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3\/\" method=\"POST\" id=\"wpmem_login_form\" class=\"form\"><input type=\"hidden\" id=\"_wpmem_login_nonce\" name=\"_wpmem_login_nonce\" value=\"6fcb0b519a\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/tutoriels\/30270\" \/><fieldset><legend>Existing Users Log In<\/legend><label for=\"log\">Username or Email<\/label><div class=\"div_text\"><input name=\"log\" type=\"text\" id=\"log\" value=\"\" class=\"username\" required  \/><\/div><label for=\"pwd\">Password<\/label><div class=\"div_text\"><input name=\"pwd\" type=\"password\" id=\"pwd\" class=\"password\" required  \/><\/div><input name=\"a\" type=\"hidden\" value=\"login\" \/><input name=\"redirect_to\" type=\"hidden\" value=\"https:\/\/doc.probance.com\/en\/knowledge-base\/woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3\/\" \/><div class=\"button_div\"><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/>&nbsp;<label for=\"rememberme\">Remember Me<\/label>&nbsp;&nbsp;<input type=\"submit\" name=\"Submit\" value=\"Log In\" class=\"buttons\" \/><\/div><\/fieldset><\/form><\/div><div id=\"wpmem_reg\"><a id=\"register\"><\/a><form name=\"form\" method=\"post\" action=\"https:\/\/doc.probance.com\/en\/knowledge-base\/woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3\/\" id=\"wpmem_register_form\" class=\"form\"><input type=\"hidden\" id=\"_wpmem_register_nonce\" name=\"_wpmem_register_nonce\" value=\"2980026aa5\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/tutoriels\/30270\" \/><fieldset><legend>New User Registration<\/legend><label for=\"username\" class=\"text\">Choose a Username<span class=\"req\">*<\/span><\/label><div class=\"div_text\"><input name=\"username\" type=\"text\" id=\"username\" value=\"\" class=\"textbox\" required  \/><\/div><label for=\"first_name\" class=\"text\">First Name<span class=\"req\">*<\/span><\/label><div class=\"div_text\"><input name=\"first_name\" type=\"text\" id=\"first_name\" value=\"\" class=\"textbox\" required  \/><\/div><label for=\"last_name\" class=\"text\">Last Name<span class=\"req\">*<\/span><\/label><div class=\"div_text\"><input name=\"last_name\" type=\"text\" id=\"last_name\" value=\"\" class=\"textbox\" required  \/><\/div><label for=\"user_email\" class=\"text\">Email<span class=\"req\">*<\/span><\/label><div class=\"div_text\"><input name=\"user_email\" type=\"email\" id=\"user_email\" value=\"\" class=\"textbox\" required  \/><\/div><input name=\"a\" type=\"hidden\" value=\"register\" \/><input name=\"wpmem_reg_page\" type=\"hidden\" value=\"https:\/\/doc.probance.com\/en\/knowledge-base\/woocommerce-protect-your-newsletter-subscription-form-with-recatpcha-v3\/\" \/><div class=\"button_div\"><input name=\"submit\" type=\"submit\" value=\"Register\" class=\"buttons\" \/><\/div><div class=\"req-text\"><span class=\"req\">*<\/span>Required field<\/div><\/fieldset><\/form><\/div>","protected":false},"excerpt":{"rendered":"<p>The newsletter subscription form built with our Woocommerce module provides a native honeypot antispam protection, that automatically identified and block information that are not sent by humans. It is however possible and strongly recommended to further protect your form using&nbsp;reCpatcha v3. This tutorial will explain how to implement reCaptcha v3 for your newsletter subscription form [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"template":"","sujets":[644],"class_list":["post-30270","tutoriels","type-tutoriels","status-publish","hentry","sujets-delivrability"],"_links":{"self":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/tutoriels\/30270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/tutoriels"}],"about":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/types\/tutoriels"}],"author":[{"embeddable":true,"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/users\/6"}],"wp:attachment":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/media?parent=30270"}],"wp:term":[{"taxonomy":"sujets","embeddable":true,"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/sujets?post=30270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}