{"id":1896646,"date":"2019-10-18T13:19:44","date_gmt":"2019-10-18T17:19:44","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/setting-up-recaptcha-for-community-events\/"},"modified":"2021-08-17T07:31:52","modified_gmt":"2021-08-17T11:31:52","slug":"setting-up-recaptcha-for-community-events","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/setting-up-recaptcha-for-community-events\/","title":{"rendered":"Using reCAPTCHA to Prevent Spam Submissions"},"content":{"rendered":"\n<p>Opening up your calendars to user event submissions with Community Events is a great way to engage your visitors and build diverse content that reflects the needs and interests of your user community. Our&nbsp;plugin&#8217;s <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/setting-overview-community-events\/\">default settings<\/a> allow submissions to be received from any and all sources, including anonymous visitors, so that you&#8217;re able to curate content&nbsp;from the broadest possible selection of users. However, in the interest of maintaining high-quality calendars populated with relevant&nbsp;events, we want to ensure that our forms are only being accessed by legitimate (human!) users, not <a rel=\"noopener noreferrer\" href=\"https:\/\/en.wikipedia.org\/wiki\/Spambot\" target=\"_blank\">spambots<\/a>.<\/p>\n\n\n\n<p>To help discourage bots and keep your event submissions looking tidy,&nbsp;we&#8217;ve built support for <a href=\"https:\/\/www.google.com\/recaptcha\/intro\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">reCAPTCHA<\/a>&#8216;s robust spam prevention tools right into Community Events. Here&#8217;s how to set that up and start protecting your forms!<\/p>\n\n\n\n<p>First, let&#8217;s log into our WordPress site admin. Under the <strong>Events<\/strong> menu item in your WordPress sidebar, click <strong>Settings<\/strong>, then click the <strong>Integrations<\/strong> tab\u00a0to navigate to the APIs page of your plugin settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2017\/06\/recaptcha_api_keys-665x253.png\" alt=\"reCAPTCHA API key fields in settings\"\/><\/figure>\n\n\n\n<p>Near the bottom of the APIs page, you&#8217;ll see a set of form fields for reCAPTCHA API keys, along with a <a href=\"https:\/\/www.google.com\/recaptcha\/admin\/create\" target=\"_blank\" rel=\"noreferrer noopener\">link to Google&#8217;s reCAPTCHA registration page<\/a> for each field.&nbsp;Click on either of these links to open the registration page in a new tab or window. (You may be prompted to create a new Google account or log into an existing account to start.)<\/p>\n\n\n\n<p>Once you&#8217;ve successfully logged into your Google account, you&#8217;ll see the first few fields of reCAPTCHA&#8217;s registration form available to fill in. Enter the name of your site into the <strong>Label<\/strong> field and select the radio button for <strong>reCAPTCHA V2<\/strong> under the type subheading, and the rest of the form fields will appear below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/03\/google-recaptcha-register-a-new-site.jpg\" alt=\"\" class=\"wp-image-1949395\"\/><figcaption>Registering a new site for Google reCAPTCHA<\/figcaption><\/figure>\n\n\n\n<p>In the text box under the&nbsp;<strong>Domains<\/strong> subheading, enter any domains that you&#8217;re using for your site, including staging\/test environments, each on its own line. For example, if your calendar is accessible at <em>example.com\/events<\/em>, you&#8217;d enter <em>example.com<\/em> as shown above.<\/p>\n\n\n\n<p>Lastly, review the Google APIs Terms of Use provided and the reCAPTCHA Terms of Service, then check the designated box to confirm that you agree to these terms and conditions. The last check box for <strong>Send alerts to owners<\/strong> is selected&nbsp;by default; you can leave this as-is if you&#8217;d like to receive messages from Google regarding your site, or you can uncheck it if you&#8217;d prefer not to see&nbsp;these alerts.<\/p>\n\n\n\n<p>Once you&#8217;re finished, click the <strong>Register<\/strong> button to submit your registration, and you&#8217;ll be taken directly to the management page for your newly-registered site. The <strong>Keys<\/strong>&nbsp;content&nbsp;section&nbsp;beneath&nbsp;<strong>Adding reCAPTCHA to your site<\/strong> should already be expanded; if it&#8217;s not, click the <strong>Keys<\/strong> subheading to open that content pane.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/03\/google-recaptcha-keys.jpg\" alt=\"\" class=\"wp-image-1949397\"\/><figcaption>The reCAPTCHA site key and secret key which you need to copy<\/figcaption><\/figure>\n\n\n\n<p>The site key and secret key provided here are all you&#8217;ll need to set up reCAPTCHA on your Community Events form. Copy the keys from each of these fields, then paste them into the appropriate fields in the APIs tab of your plugin settings page (as shown above). Once you&#8217;ve entered in both keys, click the blue <strong>Save Changes<\/strong> button on the settings page to submit your changes to the site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2017\/06\/anti_spam_check.png\" alt=\"reCAPTCHA activated on a Community Events form\"\/><\/figure>\n\n\n\n<p>Once you&#8217;ve successfully saved your new reCAPTCHA API keys to your plugin settings, you&#8217;re all finished! Anonymous visitors to your Community Events form will now see the <strong>Anti-Spam Check<\/strong> pane displayed below your form fields, and they&#8217;ll be prompted to complete a reCAPTCHA check before submitting their event.<\/p>\n\n\n\n<p>We hope you&#8217;ll consider giving this feature a try on your own Community Events setup \u2014&nbsp;it&#8217;s a great way to bolster the security of your submission forms and ensure&nbsp;that wandering spambots won&#8217;t create trouble on your site! If you should have any questions or need extra assistance getting things set up here, our support team is just a click away over at our&nbsp;<a href=\"https:\/\/support.theeventscalendar.com\/submit_ticket\">support Help Desk<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Opening up your calendars to user event submissions with Community Events is a great way to engage your visitors and build diverse content that reflects the needs and interests of your user community. Our&nbsp;plugin&#8217;s default settings allow submissions to be received from any and all sources, including anonymous visitors, so that you&#8217;re able to curate&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[120],"tags":[],"stellar-product-taxonomy":[152],"class_list":["post-1896646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-community-events","stellar-product-taxonomy-community-events"],"acf":[],"taxonomy_info":{"category":[{"value":120,"label":"Event Submissions"}],"stellar-product-taxonomy":[{"value":152,"label":"Community"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":120,"name":"Event Submissions","slug":"community-events","term_group":0,"term_taxonomy_id":120,"taxonomy":"category","description":"","parent":61,"count":18,"filter":"raw","term_order":"0","cat_ID":120,"category_count":18,"category_description":"","cat_name":"Event Submissions","category_nicename":"community-events","category_parent":61}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896646"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896646\/revisions"}],"predecessor-version":[{"id":1956179,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896646\/revisions\/1956179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896646"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}