A Russian 'sovereign internet' law published on Wednesday will come into effect in November.
President Vladimir Putin on Wednesday signed into law a "sovereign internet" bill which will allow Russian authorities to isolate the country's internet, a move decried by rights groups.
Russian lawmakers insist the new law is necessary to ensure the security of Russia's online networks but critics say the vaguely worded bill gives new censorship powers to government monitors.
The text of the law was published on Wednesday but it will not come into effect until November.
The measures include creating technology to monitor internet routing and to steer Russian internet traffic away from foreign servers, ostensibly to prevent a foreign country from shutting it down.
The authors of the initiative say Russia must ensure the security of its networks after US President Donald Trump unveiled a new American cybersecurity strategy last year that said Russia had carried out cyber attacks with impunity.
Thousands of people recently rallied in Russia against this and other bills that critics say aim to restrict information and communication online.
Separately, Putin in March signed controversial laws that allow courts to fine and briefly jail people for showing disrespect towards authorities, and block media for publishing "fake news".
The laws are part of an ongoing Kremlin clampdown on media and internet freedoms that has seen people jailed for sharing humorous memes.
Last week 10 international rights organisations called on Russia to scrap the internet bill.
"The bill created a system that gives the authorities the capacity to block access to parts of the Internet in Russia," said a statement backed by Human Rights Watch, Reporters Without Borders and others.
The blocking would be "extrajudicial and non-transparent," the statement said.
Under the new law, Russian Internet access providers will also need to ensure that their networks have the technical means for "centralised traffic control" to counter potential threats.
This control will pass notably to the Russian FSB security service and the telecoms and media monitoring agency Roskomnadzor, which is often accused of arbitrarily blocking content on the web.
In recent years Russian authorities have blocked online sites and content linked to the opposition, as well as internet services which fail to cooperate with them, including the Dailymotion video platform, the Linkedin online social networking site and the encrypted messaging app Telegram.