I couldn't take it anymore. The level of abuse from AI scrapers is unbearable.
I have now put https://git.gammaspectra.live/git/go-away in front of the most bombarded #forgejo site I look after. I like that it has all the JS tricks that are forced upon us these days, but also the simple rules for straightforward decision making based on the incoming requests. And it is really really nice to have them laid out in a clear and directly usable example: https://git.gammaspectra.live/git/go-away/src/branch/master/examples/forgejo.yml