{"id":362,"date":"2019-07-30T19:36:00","date_gmt":"2019-07-30T19:36:00","guid":{"rendered":"https:\/\/www.smarthost.eu\/blog\/?p=362"},"modified":"2020-02-21T07:33:24","modified_gmt":"2020-02-21T07:33:24","slug":"adding-recaptcha-in-wordpress-for-contact-form-7-plugin","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/adding-recaptcha-in-wordpress-for-contact-form-7-plugin","title":{"rendered":"Adding reCAPTCHA in WordPress for Contact Form 7 plugin."},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>It is often that we come across attempts at sending unwanted <strong>SPAM<\/strong> messages from unsafe forms in WordPress. The solution most widely used on web services is<strong> \u201eCAPTCHA\u201d<\/strong>. It is a solution engineered by Google which verifies validity of your contact form or your newsletter registration.<\/p>\n\n\n\n<p> In the first step, you will need to visit: <em>google.com\/recaptcha<\/em><br> In order to use this service you will need to have a free Google account.<\/p>\n\n\n\n<p> Next, click the \u201cAdmin console\u201d icon in top right corner.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/1.png\" alt=\"\" class=\"wp-image-363\" width=\"242\" height=\"78\"\/><\/figure><\/div>\n\n\n\n<p> After that you will be redirected to registration of a new domain. <br> The new domain will be the domain you intend to use <strong>reCAPTCHA<\/strong> on:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"957\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/2.jpg\" alt=\"\" class=\"wp-image-370\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2.jpg 742w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2-233x300.jpg 233w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/figure><\/div>\n\n\n\n<p>Next, you need to accept the Terms of Service. After that you will get a <strong>\u201cSite key\u201d<\/strong> and a <strong>\u201eSecret Key\u201d<\/strong>, which will be needed in the next step.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"416\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/3.jpg\" alt=\"\" class=\"wp-image-371\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3.jpg 765w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3-300x163.jpg 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/figure><\/div>\n\n\n\n<p>Now you will go to your WordPress Dashboard from which you will pick <strong>Contact > Integration<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"156\" height=\"133\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/4.jpg\" alt=\"\" class=\"wp-image-372\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"449\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/5.jpg\" alt=\"\" class=\"wp-image-373\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/5.jpg 529w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/5-300x255.jpg 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/figure><\/div>\n\n\n\n<p>Now click \u201eSetup Integration\u201d where you will enter the acquired keys needed to setup <strong>reCAPTCHA:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"339\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/6.jpg\" alt=\"\" class=\"wp-image-374\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/6.jpg 520w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/6-300x196.jpg 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/figure><\/div>\n\n\n\n<p>After applying changes, your <strong>reCAPTCHA<\/strong> will be added in version you picked in registration process.<\/p>\n\n\n\n<p>Of course in this instance <strong>reCAPTCHA<\/strong> will be available for chosen plugin \u2013 in this case <strong>Contact Form 7<\/strong>. You can use the same keys for other plugins e.g.  adding <strong>reCAPTCHA<\/strong> to adding comments on your blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is often that we come across attempts at sending unwanted SPAM messages from unsafe forms in WordPress. The solution most widely used on web services is \u201eCAPTCHA\u201d. It is a solution engineered by Google<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/adding-recaptcha-in-wordpress-for-contact-form-7-plugin\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[140,141,142,44,75,63,46],"class_list":["post-362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-captcha","tag-captcha-recaptcha","tag-google-captcha","tag-secure-hosting","tag-security","tag-wordpress","tag-wordpress-plugins"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":7,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions\/492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/369"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}