Hi there, thanks for reaching out! Once thing you could consider is utilizing an Edge Function to block traffic from unwanted user agents or countries. You can see some examples of Edge Functions here to get an idea of how to create one: https://edge-functions-examples.netlify.app/
I hope this helps!