The problem:
I already built a HTML form where I first check if the email is in the form username@host.com and then if their email is in the database, send them an email with their temporary password so they can log in with that temporary password and reset their password. But I also wan't to keep out any bots that might be trying to get a list of all the existing emails in my site depending on the output that they get from the site e.g. "Your password has been reset ..." .
I've seen some sites that do this: If you try to retrieve your password with a wrong address then (I'm thinking) block their IP address for a specific amount of time lets say 1 hour. I would like to know if there's a way to solve this with PHP or javascript.
If there are any examples I can get for this problem would be great.