As activists and ordinary citizens have increasingly made use of the internet to express their opinions and connect with others, many governments have also increased surveillance, filtering, legal actions and harassment.