The majority of countries are already enacting laws/frameworks/technology that would help eventually outlaw this sort of behaviour, perhaps not explicitly, but many times implicitly. For example in Australia the govt is looking to push facial recognition cameras into public places and "only use them for serious crimes where the sentence is 3 years or more". What they fail to tell you is that in Aus, public disturbance carries something like 5 years, so now there's the very legitimate worry that facial recognition could be used on people fighting for their rights and showing support. Used the Aus example because the two countries are fairly similar law wise, and with their surveillance stances.