Sushant Torankar

Sushant Torankar

  • 2.1k
  • 173
  • 16.6k

Max allow IP address

Apr 27 2023 6:39 PM


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 (4)