The government will come out with a data protection law to check possible diversion and misuse of private user information by social media and tech giants such as Facebook, Google, Instagram, Amazon, and Apple.