CodeIgniter Forums
Captcha Helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Captcha Helper (/showthread.php?tid=77746)



Captcha Helper - mohs3n - 10-14-2020

Hi

There is a captcha helper in CI3 but it doesn't exist in CI4 !
How should we implement captcha for forms?


RE: Captcha Helper - captain-sensible - 10-14-2020

well i take a birds eye view on this , its only my own view . Wordpress as default does not hide wp-admin login. My login page is not quoted anywhere on my site. Wordpress does not have a captcha as default. Wordpress does not as default limit limit attempts, mine via a session limits attempts to 5

So taking everything into account i just did my own captcha , its simply based on chr(rand(48,57)) and showing image with a integer relative to result of rand- not great but at least i understand my own code and its still better than WordPress which a large % on web use


but otherwise you can integrate google captcha or other .


RE: Captcha Helper - InsiteFX - 10-14-2020

Use Google Re-Captcha.


RE: Captcha Helper - mohs3n - 10-14-2020

I used this toturial to add google reCaptcha to my project:
https://www.webslesson.info/2020/10/how-to-implement-google-recaptcha-in-codeigniter.html