Warning: Declaration of Jetpack_IXR_Client::query() should be compatible with IXR_Client::query(...$args) in /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378

Warning: Cannot modify header information - headers already sent by (output started at /home/simoni/blog.dadamailproject.com/wp-content/plugins/jetpack/class.jetpack-ixr-client.php:91) in /home/simoni/blog.dadamailproject.com/wp-includes/rest-api/class-wp-rest-server.php on line 1378
{"id":113,"date":"2016-12-06T01:11:02","date_gmt":"2016-12-06T01:11:02","guid":{"rendered":"http:\/\/blog.dadamailproject.com\/?p=113"},"modified":"2016-12-06T20:58:45","modified_gmt":"2016-12-06T20:58:45","slug":"add-google-recaptcha-on-dada-mail-subscription-forms","status":"publish","type":"post","link":"https:\/\/blog.dadamailproject.com\/2016\/12\/06\/add-google-recaptcha-on-dada-mail-subscription-forms\/","title":{"rendered":"Add Google reCAPTCHA on Dada Mail Subscription Forms"},"content":{"rendered":"
\n

You\u2019ve asked, we (finally!<\/em>) answered: v10.2.0 of Dada Mail supports CAPTCHA<\/strong> on the initial signup form!<\/p>\n

Although the app has supported CAPTCHA for many years for a whole bunch of things in the app, we never added support for the initial signup form. We were worried about the usability of forcing your potential subscribers to solve a CAPTCHA.<\/p>\n

Why have we changed our minds?<\/p>\n

Google\u2019s latest reCAPTCHA system is a whole lot more usable to work with, and the threat of abuse on things like newsletter subscription forms is just not going away<\/em>. So, why not make support at least an option?\u00a0 Those who would like the subscription form to work as it always has still can. Everyone else can enjoy the enhanced security. Seems like a big win.<\/p>\n

Another big change in Dada Mail’s CAPTCHA system is that we now only<\/em> support the latest version of Google’s reCAPTCHA system (version 2). In the past, we also supported reCAPTCHA version 1, as well as a CAPTCHA system based on, Authen::Captcha<\/a>.\u00a0 To keep the code simple and bug-free for something so security-specific, we’ve removed these other choices.<\/p>\n

Setting up Google reCAPTCHA in Dada Mail<\/h2>\n

Create a Site and Secret Key Pair<\/h3>\n

Sign up for the Google reCAPTCHA service at,<\/p>\n

http:\/\/www.google.com\/recaptcha\/admin <\/a><\/p>\n

and create a site and secret key pair for the site you have Dada Mail installed at, as outlined here:<\/p>\n

https:\/\/developers.google.com\/recaptcha\/docs\/start<\/a><\/p>\n

Make sure you record both the site and secret key somewhere safe – we’ll be using them, later.<\/p>\n

Configure Dada Mail to use Google ReCAPTCHA<\/h3>\n

Plugging in the site and secret keys, and telling Dada Mail to use Google reCAPTCHA is done in Dada Mail’s global configuration. The easiest way to work with that is through Dada Mail’s included web-based installer, so an install or upgrade would be the perfect time to set all this up. If you have v10.2.0 (or later) of Dada Mail installed, you can also drop back into the installer <\/a>to make these configuration changes.<\/p>\n

Once in the installer’s configure screen, look for the Advanced Options<\/strong>. This is where you can setup the plugins\/extensions, as well as many of Dada Mail’s more advanced features. If you do not see these options, click the button labeled, Show\/Hide Advanced Options…<\/strong><\/p>\n

Next, look for a checkbox labeled, Configure CAPTCHA Options<\/strong>. Check the box, and the CAPTCHA options will be revealed.<\/p>\n

Check the box labeled, Add CAPTCHA on all subscription forms <\/strong>if it’s not already checked.
\n<\/strong><\/p>\n

Now, you’ll need to plug in the site key and secret key in the textboxes labeled, reCAPTCHA Site key:<\/strong> and, reCAPTCHA Secret key: <\/strong><\/p>\n

Once that’s all set up, you can test to make sure if everything works, but clicking the button labeled, Test CAPTCHA Configuration… <\/strong>If everything works correctly, you’ll be shown a working reCAPTCHA v2 widget!<\/p>\n

\"google_recaptcha_v2\"<\/p>\n

And you’re done! Complete the installation process, and enjoy a CAPTCHA<\/em>-full Dada Mail.<\/p>\n

Here’s what my own subscription form now looks like, with the added reCAPTCHA widget,<\/p>\n

\"google_recaptcha_v2_1\"<\/p>\n

Just remember, if you have a subscription form that you’ve added directly to your website, and you have CAPTCHA now configured, those forms will have to be updated. The code available in the list control panel under, Appearance: Subscription Form HTML<\/strong> will do the trick.<\/p>\n

Missing CPAN Module?<\/h3>\n

Dada Mail’s Google reCAPTCHA support requires the Google::reCAPTCHA<\/code> Perl module, which you can install from CPAN in a few different ways<\/a>.<\/p>\n

Need More Help?<\/h3>\n

We offer installation services for Dada Mail<\/a>, including setting up Google reCAPTCHA for your site. See all our installation services here<\/a>.<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"

You\u2019ve asked, we (finally!) answered: v10.2.0 of Dada Mail supports CAPTCHA on the initial signup form! Although the app has supported CAPTCHA for many years for a whole bunch of things in the app, we never added support for the initial signup form. We were worried about the usability of forcing your potential subscribers to […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[12],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paVOyw-1P","_links":{"self":[{"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/posts\/113"}],"collection":[{"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":3,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/posts\/113\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.dadamailproject.com\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}