Sushant Torankar

Sushant Torankar

  • 1.5k
  • 264
  • 29.1k

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)