CodeIgniter Forums
How can I lockout login for 5 minutes if 5 bad attempts are made - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How can I lockout login for 5 minutes if 5 bad attempts are made (/showthread.php?tid=83122)



How can I lockout login for 5 minutes if 5 bad attempts are made - Dokfah551 - 09-22-2022

Hello,

Im trying to lock the login for 5 minutes if 5 bad attempts are made in a row to help deter brute force hackers. Does anyone have any methods they usually use in CodeIgniter? Thanks! 
สล็อตขั้นต่ำ 1 บาทฝากถอนออโต้


RE: How can I lockout login for 5 minutes if 5 bad attempts are made - InsiteFX - 09-23-2022

Best thing would be to take a look at Lonnie's Sheild Auth.

CodeIgniter Shield


RE: How can I lockout login for 5 minutes if 5 bad attempts are made - kenjis - 09-23-2022

Shield does not have the account lock feature yet.


RE: How can I lockout login for 5 minutes if 5 bad attempts are made - luckmoshy - 09-23-2022

just use ci throttle https://codeigniter.com/user_guide/libraries/throttler.html?highlight=throttle

just use a logic function with HTML
Code:
disabled
atribute in input field

PHP Code:
<?php

$throttler 
= \Config\Services::throttler();
$throttler->check($name60MINUTE); 



RE: How can I lockout login for 5 minutes if 5 bad attempts are made - InsiteFX - 09-24-2022

Ok. thanks @kenjis, I have not really dug into the source that much yet but will get around to it.