You cannot prevent private communication. It is just not possible to stop people from finding ways to exchange information in nonpublic ways.
Sure, you can make it the law, but technically there are infinite ways to get around it, including ones that are impossible to get rid off, like using the shared folders on systems that are non-publik for safety reasons.