{"id":110,"date":"2025-04-05T18:02:52","date_gmt":"2025-04-05T18:02:52","guid":{"rendered":"https:\/\/getpetitioner.com\/?post_type=docs&#038;p=110"},"modified":"2025-04-27T17:31:23","modified_gmt":"2025-04-27T17:31:23","slug":"captcha","status":"publish","type":"docs","link":"https:\/\/getpetitioner.com\/docs\/captcha\/","title":{"rendered":"Configuring captcha"},"content":{"rendered":"\n<p>To protect your petition forms from spam, the Petitioner plugin supports Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile. You can choose either depending on your preference and use case.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-group p-3 bg-light rounded-3 my-3 is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<h3 class=\"wp-block-heading\">Note: do not try to use multiple at the same time<\/h3>\n\n\n\n<p>These captcha libraries are not meant to be used together and will cause conflicts if you try.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring reCaptcha<\/h2>\n\n\n\n<p>First of, you will need to get your credentials. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/www.google.com\/recaptcha\/admin\/create\" target=\"_blank\" rel=\"noopener\">https:\/\/www.google.com\/recaptcha\/admin\/create<\/a> and create a new reCaptcha instance. Add a label and use the v3 version of the captcha.<\/li>\n\n\n\n<li>Add your domain (e.g., example.com)<\/li>\n\n\n\n<li>Accept Terms and click <strong>Submit<\/strong><\/li>\n\n\n\n<li>Copy your <strong>Site Key<\/strong> and <strong>Secret Key<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Now that you have your credentials:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Petitioner \u2192 Settings \u2192Integrations<\/strong>. Find <strong>Google reCAPTCHA v3<\/strong> and click <strong>&#8220;Configure&#8221;<\/strong><\/li>\n\n\n\n<li>Click <strong>&#8220;Enabled&#8221;<\/strong> to enable<\/li>\n\n\n\n<li>Enter your site key and the secret key.<\/li>\n\n\n\n<li>Close the popup and hit <strong>&#8220;Save Changes&#8221;<\/strong><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring hCaptcha<\/h2>\n\n\n\n<p>Getting credentials is similar to reCAPTCHA:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to: <a href=\"https:\/\/www.hcaptcha.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.hcaptcha.com\/<\/a><\/li>\n\n\n\n<li>Sign in and navigate to the <strong>Sites<\/strong> section<\/li>\n\n\n\n<li>Add a new site and domain<\/li>\n\n\n\n<li>Choose the difficulty level<\/li>\n\n\n\n<li>Copy your <strong>Site Key<\/strong> and <strong>Secret Key<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Now lets add them to Petitioner:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong><strong>Petitioner \u2192 Settings \u2192Integrations<\/strong><\/strong>. Find <strong>hCaptcha<\/strong> and click <strong>&#8220;Configure&#8221;<\/strong><\/li>\n\n\n\n<li>Click <strong>&#8220;Enabled&#8221;<\/strong> to enable<\/li>\n\n\n\n<li>Enter your site key and the secret key.<\/li>\n\n\n\n<li>Close the popup and hit <strong>&#8220;Save Changes&#8221;<\/strong><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Cloudflare Turnstile<\/h2>\n\n\n\n<p>Turnstile is very similar to the above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/dash.cloudflare.com\/\" target=\"_blank\" rel=\"noopener\">Cloudflare Turnstile Dashboard<\/a><\/li>\n\n\n\n<li>Navigate to <strong>Turnstile \u2192 Add site<\/strong><\/li>\n\n\n\n<li>Add a new site and domain<\/li>\n\n\n\n<li>Choose \u201cManaged\u201d mode<\/li>\n\n\n\n<li>Copy your <strong>Site Key<\/strong> and <strong>Secret Key<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Now lets add them to Petitioner:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong><strong>Petitioner \u2192 Settings \u2192Integrations<\/strong><\/strong>. Find <strong>Cloudflare Turnstile<\/strong> and click <strong>&#8220;Configure&#8221;<\/strong><\/li>\n\n\n\n<li>Click <strong>&#8220;Enabled&#8221;<\/strong><\/li>\n\n\n\n<li>Enter your site key and the secret key.<\/li>\n\n\n\n<li>Close the popup and hit <strong>&#8220;Save Changes&#8221;<\/strong><\/li>\n<\/ol>\n","protected":false},"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-110","docs","type-docs","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/docs\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":11,"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/docs\/110\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/docs\/110\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/getpetitioner.com\/wp-json\/wp\/v2\/media?parent=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}