China asked web users to register their names and legalising the deletion of posts or pages which are considered to contain illegal information. The country has tightened its Internet controls.
China's legislature approved the Internet measures at a closing meeting of a five-day session.
The measure will 'ensure Internet information security, safeguard the lawful rights and interests of citizens, legal entities or other organisations, and safeguard national security and social public interests', the official Xinhua news agency cited the regulation as stating.
According to the Guardian, the government says the latest regulation is aimed at protecting web users' personal information and cracking down on abuses, such as junk email.
The rules signal that the new leadership, headed by Communist party chief, Xi Jinping, will continue to muzzle the online chatter in a country where the internet offers a rare opportunity for debate, the paper said.
The restrictions follow a series of corruption scandals among lower-level officials exposed by Internet users, something the government has said it is trying to encourage, it added.