Sushant Torankar

Sushant Torankar

  • 1.4k
  • 220
  • 22.4k

Max allow IP address

Apr 27 2023 6:39 PM

Hello,

I am using Username and Password to login to api, but if someone enters invalid password 5 times, I want to lock or block computer IPADDRESS for 2 hours.

If same IPADDRESS hits api in between that 2 hours, it should say - IP address is locked, try later. After 2 hours, if that IPAddress enetered valid credentials, it should go ahead.

how it can be achieved ?

Thank You !


Answers (8)