AndrejZbin / django-hcaptcha

Django hCaptcha provides a simple way to protect your django forms using hCaptcha
BSD 3-Clause "New" or "Revised" License
32 stars 11 forks source link

Invisible Captchas #1

Open msenol86 opened 3 years ago

msenol86 commented 3 years ago

Hi, I wonder invisible captchas are supported in this package?

AndrejZbin commented 3 years ago

Hi, thanks for the question. The element is always rendered as <div>, but I'm happy to accept a PR if you can think of a good solution for this.

Alternatively you can just use "data-callback" (like this hCaptchaField(callback='your_js_function', ...)), invoke hcaptcha.execute() before the form is submitted and submit the form in your_js_function.

msenol86 commented 3 years ago

umm ok thank you very much for your clear answer. I will try data-callback solution

9mido commented 3 years ago

There is nocaptcha which is hcaptcha's version of Google's ReCAPCTHA v3. Not sure if this package has that built in since it costs $ and requires a business account to be able to even use it and access the docs according to their support team. There is entirely passive (just a score) and "mostly passive" (only a small % of users are challenged).

Otherwise, you could tie the captcha to a submit button click to make the checkbox invisible.

https://docs.hcaptcha.com/invisible

https://docs.hcaptcha.com/enterprise/scores_and_modes (needs a paid account)