8
votes
4answers
2k views

How can I detect and block bots?

For example, if I am on stackoverflow and I refresh my page several times in a row, it starts to think I am a bot and blocks me. How can I build something like this into my own site?