Maybe I should have been more specific. In my mind there is a difference between stopping outgoing ddos attack and blocking/censoring websites.
Keep going a few steps and you'll realize that's exactly the problem, there's no level of specificity you can define here that works without some level of subjectivity. Try and see. Good luck.
Suggested reading: https://twitter.com/yishan/status/1586955288061452289