TEHRAN, Iran (AP) — The largest protests to strike Iran in nearly a decade continued unabated Sunday, despite a government move to block access to Instagram and a popular messaging app used by activists to organize, with even President Hassan Rouhani acknowledging the public’s anger over the Islamic Republic’s flagging economy.
Rouhani and other leaders made a point to warn that the government wouldn’t hesitate to crack down on those it considers lawbreakers amid the demonstrations, which began Thursday over the economic woes plaguing Iran.
“Those who misused cyberspace and spread violence are absolutely known to us and we will definitely confront them,” Iranian Interior Minister Abdolreza Rahmani Fazli said on state television.
The outpouring of public discontent — the most widespread since protests following Iran’s disputed 2009 presidential election —have been fanned by messages sent on the Telegram messaging app, which authorities blocked Sunday along with the photo-sharing app Instagram, which is owned by tech giant Facebook.
Many in Iran are learning about the protests and sharing images of them through Telegram, a mobile-phone messaging app popular among the country’s 80 million people. On Saturday, Telegram shut down one channel of the service over Iranian government allegations that it encouraged violence, something its moderator denied.
WATCH: Iranian police disperse anti-government protesters in Kermanshah
On Sunday, Telegram CEO Pavel Durov wrote on Twitter that authorities had blocked all access to the app.
Iran’s state TV news website, iribnews.ir, said that social media in Iran was being temporarily limited as a safety measure.
“With a decision by the Supreme National Security Council, activities of Telegram and Instagram are temporarily limited,” the report said, without elaborating.
Facebook, based in Menlo Park, California, declined to comment.
Facebook itself has been banned in Iran since the 2009 protests that followed the re-election of hard-line President Mahmoud Ahmadinejad. However, some in Iran access it and other banned websites using virtual private networks.
“The gathering was to be ended peacefully, but due to the presence of the (agitators), unfortunately, this happened,” Khojastepour said.
He did not offer a cause of death for the two protesters, but said “no bullets were shot from police and security forces at the people.”
However, the reformist Etemad newspaper quoted Hamid Reza Kazemi, a Lorestan lawmaker, as saying police did open fire during the clashes.
WATCH: Israel’s Netanyahu says ‘Iran is threatening the entire world’
“If someone comes to the street and acts like a norm breaker, what would you do?” the newspaper quoted Kazemi as saying.
Videos circulating on social media late Saturday also appeared to show fallen protesters in Doroud as gunshots sounded in the background. The Associated Press could not immediately verify the footage.
Thousands have taken to the streets of cities across Iran, beginning on Thursday in Mashhad, the country’s second-largest city and a holy site for Shiite pilgrims.
The protests in the Iranian capital, as well as President Donald Trump tweeting about them, raised the stakes. It also apparently forced state television to break its silence about the unrest, acknowledging Saturday that it hadn’t reported on the protests on orders from security officials.
Trump, whose travel bans have blocked Iranians from getting U.S. visas, again tweeted about the protests Sunday.
Rouhani criticized Trump in comments aired Sunday night.
“This guy in America who wants to sympathize with our people today has forgotten that he had called Iranian people ‘terrorists’ a few months ago,” Rouhani said. “This person who is against Iran from head to toe does not have the right to be sympathetic to Iranian people.”
WATCH: Iranian president says people have right to protest, but must avoid violence
Several hundred protesters have been arrested so far, beginning with over 50 in Mashhad on Thursday. The semi-official ILNA news agency reported Sunday that authorities had arrested some 80 protesters in the city of Arak, some 280 kilometers (175 miles) south of Tehran, as well as another 200 in Tehran on Saturday night.
State TV also has reported that some protesters invoked the name of the U.S.-backed shah, who fled into exile just before Iran’s 1979 Islamic Revolution and later died.
Iran’s economy has improved since its 2015 nuclear deal with world powers, which saw Iran limit its enrichment of uranium in exchange for the end of some international sanctions. Tehran now sells its oil on the global market and has signed deals to purchase tens of billions of dollars’ worth of Western aircraft.
That improvement has not reached the average Iranian, however. Unemployment remains high, and official inflation has crept up to 10 percent again. A recent increase in egg and poultry prices by as much as 40 percent, which a government spokesman has blamed on a cull over avian flu fears, appears to have been the spark for the economic protests.
WATCH: Nikki Haley: ‘Iran is not putting out fires, but fanning the flames of conflict’
While the protests have sparked clashes, Iran’s hard-line paramilitary Revolutionary Guard and its affiliates have not intervened as they have in other unauthorized demonstrations since the 2009 election.
Some analysts outside of Iran have suggested that may be because the economic protests initially just put pressure on Rouhani, a relative moderate whose administration struck the nuclear deal.
While saying people should be allowed to protest, Rouhani also made a point Sunday of issuing a warning to demonstrators.
“The government will definitely not tolerate those groups who are after the destruction of public property or disrupting the public order or spark riots in the society,” he said.