How can the government balance regulation of online gambling platforms with individual freedoms?

With the recent blocking of 300 illegal gambling and betting platforms, I wonder how the government can ensure effective regulation without infringing on personal liberty and digital rights. What are the challenges in finding this balance?