Hi guys,
I am working on accounts application, my client needs a login check like if a user comes on site and login with invalid usrename or password ill save the ip address of user and time of attempt in timestamp.
now i want to check if a user attempted 10 times in last 10 minutes with same ip then i will block his/her ip for ten minutes.
all the work is done just getting problem in getting last 10 minutes time. how can i get the time of last 10 minutes.
Any help will be appriciated
Thanks
Regards
Abdur Rehman