The law on “cybercrime” means websites can be blocked in Egypt if deemed to constitute a threat to national security or the economy.
According to the new legislation, anyone found guilty of running, or just visiting, such sites could face prison or a fine.
Authorities say the new measures are needed to tackle instability and terrorism.
However, human rights groups accuse the government of trying to crush all political dissent in Egypt.
The Cairo-based Association of Freedom of Thought and Expression said more than 500 websites had already been blocked in Egypt prior to the new law being signed.
Last month, another bill was passed by parliament, yet to be approved by the president, that would allow any social media accounts with more than 5,000 followers to be placed under supervision.
Correspondents says that with street protests in Egypt all but banned, the internet has been one of the last forums left for Egyptians to express dissent.
Last month, Human Rights Watch issued a warning that Egyptian authorities were increasingly using counterterrorism and state-of-emergency laws and courts to unjustly prosecute journalists, activists, and critics for peaceful criticism.
Those recently arrested include the well-known blogger and rights defender Wael Abbas; Amal Fathy, a political activist and the wife of the head of the Egyptian Commission for Rights and Freedoms; and the comic Shady Abu Zaid.
President Joe Biden has urged pro-Palestinian protesters on university campuses to uphold the rule of…
Blue Ivy Carter has joined the voice cast of The Lion King prequel Mufasa: The…
At least five people, including a four-month-old baby, have been killed after dozens of tornadoes…
Harvey Weinstein has been hospitalized just days after his 2020 rape conviction in New York…
Hamas has published a video showing the first proof of life of US and Israeli…
Prosecutors and Donald Trump’s attorneys delivered opening statements and the first witness was called on…