The main problem on my site is that bots hit the CGIT repo, where visiting files triggers syntax highlighting scripts.
I put in a skill-testing-question type system where you get a maximally long-lived access cookie if you answer right (so legit users are bothered as infrequently as possible).
Why not a CDN?
Thankfully they were not really malicious like some of the other folks have experienced, but it was still frustrating.