My site is under a brute force attack in which the attackers are attempting to gain access to user accounts. The bots do not have a user agent. I have a system in place that blocks a person from signing in if they exceed 3 attempts per account in under 10 minutes.
I also made it check for a user agent, and if not, exit.
My question is: Are sessions only stored in browsers? What I'm thinking is that they are using a script executed via command line.
I've implemented this as well:
if(!isset($_COOKIE[ini_get('session.name')])) {
header("HTTP/1.0 404 Not Found");
exit;
}
Is there anything else I can do to prevent these attacks?