As governments and security forces become more aware of the role of social media in coordinating protest movements they are developing new ways to block, hack and track citizen tweets, Facebook posts and other social-media messages.