Stopping all of agroup from doing something terrible is a far cry frol collective punishment. In fact there's no need to punish at all here, simple eliminate the problem.
That's not what were talking about here. Were talking about indiscriminate hacking/doxing of police, and the people who are cheering that on. How is that going to effectively address the root causes of police militarization?
Defunding police departments (many of which everyone is realizing are grossly overfunded) and taking away qualified immunity (which is a protection entirely made up by the judicial branch, which the police have close relationships with) are not “collective punishment”.
https://en.m.wikipedia.org/wiki/Collective_punishment