Stopping hackers is a constant battle where the best approach is to be proactive. Using a firewall and blocking known bad IPs and spammers can prevent a lot of automated attacks. Keep your website updated also!