As I mentioned a few comments up, I don't think you can implement a countermeasure like that without violating the TOS. And even if you were technically in the right, you'd be right back in the situation of automated bots thinking you were up to something fishy and banning you.