Best way to beat hackers is to hack better than they do (amateur programmer speaking). The grand majority of them are idiots, so it's not too hard to maintain a stockpile of hacks that can be turned on when some tool decides he's Neo or something.
I'll get flak for this, sure, but consistently destroying people RAGEs them and gets them to quit eventually, whereupon it reverts to business as usual.