Reply to thread


New CAPTCHA option: hCaptcha

You may have recently heard the name "hCaptcha". As well as being suggested on our forum they gained some notoriety recently as CloudFlare decided to adopt them over reCAPTCHA.


We checked them out and liked what we saw so we decided to add them as a CAPTCHA provider starting with XF 2.2.


You have to sign up for a key at their website and populate those keys, as you might expect, in the "Enable CAPTCHA for guests" option:


[ATTACH=full]228532[/ATTACH]


Once enabled hCaptcha will now appear wherever we usually ask for a CAPTCHA:


[ATTACH=full]228533[/ATTACH]


There's also a "Use invisible hCaptcha" option too. Here's a screenshot showing the invisible mode in action:


Wow, see how invisible it is?


Jokes aside, it's actually too invisible. By which we mean that while there is an "invisible" option for reCAPTCHA too, it does at least display a small icon in the corner of the screen. hCaptcha doesn't so, to comply with privacy regulations, we've also added a new feature to the CAPTCHA handlers so that they can add additional attribution into the privacy policy of the site:


[CODE="php"]public function getPrivacyPolicy()

{

   return \XF::phrase('hcaptcha_privacy_policy');

}[/CODE]


[ATTACH=full]228534[/ATTACH]


Back
Top Bottom