{"id":1218,"date":"2021-10-14T14:38:09","date_gmt":"2021-10-14T13:38:09","guid":{"rendered":"https:\/\/wearesmile.com\/help\/?post_type=ht_kb&#038;p=1218"},"modified":"2021-10-14T14:38:13","modified_gmt":"2021-10-14T13:38:13","slug":"adding-recaptcha-to-a-form","status":"publish","type":"ht_kb","link":"https:\/\/wearesmile.com\/help\/documentation\/adding-recaptcha-to-a-form\/","title":{"rendered":"Adding reCAPTCHA to a form"},"content":{"rendered":"\n<p>Spammers often attack forms which can be both an annoyance and a security risk to your site. If you find that a form is receiving a lot of spam, you can add a reCAPTCHA field to help filter out unwanted entries.<\/p>\n\n\n\n<p>The first step is to register your site with Google&#8217;s anti-spam reCAPTCHA service. You&#8217;ll need to select &#8216;v2&#8217; for the reCAPTCHA type. We recommend choosing the &#8216;invisible&#8217; option when you&#8217;re registering, as it&#8217;s more flexible with Gravity Forms (the plugin used to build forms on HappyPress sites). Don&#8217;t worry, you can set how you&#8217;d like to display the reCAPTCHA field in the Gravity Forms settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"579\" src=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21.png\" alt=\"Registering a new site with Google's reCAPTCHA service\" class=\"wp-image-1221\" srcset=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21.png 758w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21-300x229.png 300w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21-50x38.png 50w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21-60x46.png 60w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.21.21-100x76.png 100w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p>Once registered, you&#8217;ll be able to find your reCAPTCHA keys in the settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"682\" src=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22.png\" alt=\"reCAPTCHA keys\" class=\"wp-image-1220\" srcset=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22.png 955w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22-300x214.png 300w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22-768x548.png 768w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22-50x36.png 50w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22-60x43.png 60w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.11.22-100x71.png 100w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/figure>\n\n\n\n<p>Paste these values into the appropriate fields on the Gravity Forms reCAPTCHA settings screen and choose how you&#8217;d like reCAPTCHA fields to display in your forms. The display options are &#8216;Checkbox&#8217; and &#8216;Invisible&#8217;: &#8216;checkbox&#8217; will show a field that users must tick in order to submit the form; &#8216;invisible&#8217; shows a small banner instead and doesn&#8217;t require any active user interaction.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"540\" src=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-1024x540.png\" alt=\"Gravity Forms reCAPTCHA settings\" class=\"wp-image-1222\" srcset=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-1024x540.png 1024w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-300x158.png 300w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-768x405.png 768w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-50x26.png 50w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-60x32.png 60w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24-100x53.png 100w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Screenshot-on-2021-10-14-at-14-14-24.png 1195w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After you&#8217;ve saved your settings, the final step is to add a reCAPTCHA field to the individual form or forms and you should see a reduction in spam!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-1024x571.png\" alt=\"Adding a reCAPTCHA field to your form\" class=\"wp-image-1223\" srcset=\"https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-1024x571.png 1024w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-300x167.png 300w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-768x428.png 768w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-50x28.png 50w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-60x33.png 60w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28-100x56.png 100w, https:\/\/wearesmile.com\/help\/wp-content\/uploads\/sites\/3\/2021\/10\/Markup-2021-10-14-at-14.34.28.png 1204w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Spammers often attack forms which can be both an annoyance and a security risk to your site. If you find that a form is receiving a lot of spam, you can add a reCAPTCHA field to help filter out unwanted entries. The first step is to register your site with&#8230;<\/p>\n","protected":false},"author":8,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_searchwp_excluded":"","footnotes":""},"ht-kb-category":[92],"ht-kb-tag":[],"class_list":["post-1218","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-general"],"_links":{"self":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/1218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/comments?post=1218"}],"version-history":[{"count":1,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/1218\/revisions"}],"predecessor-version":[{"id":1224,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb\/1218\/revisions\/1224"}],"wp:attachment":[{"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/media?parent=1218"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1218"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wearesmile.com\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}