Eleven Iranians accused of sending insulting text messages about Islamic republic founder Ayatollah Ruhollah Khomeini have been arrested in the southern province of Shiraz, according to newspaper reports.

"After monitoring social network applications on mobile phones like WhatsApp, Viber, Line and Tango ... 11 people were arrested," said General Esmail Mohebipour, the provincial chief of the Revolutionary Guards.

"They recognised the error of their ways," the Haft e-Sobh daily cited the general as saying.

On Saturday, Iran's judiciary issued a one-month ultimatum for the government to ban such social networking apps, in a move that would boost existing restrictions on internet use.

The ultimatum came after the discovery of messages criticising Ayatollah Khomeini.

Local media reports said similar messages had also been sent about current officials in the Iranian government, including supreme leader Ayatollah Ali Khamenei.

"We firmly believe that criminal content on social networks must be blocked, but banning these networks is another story," Telecommunications Minister Mahmoud Vaezi was quoted by Fars news agency as saying.

He said the ministry's engineers were working on ways to remove "criminal" content.

A spokesman for the judiciary confirmed that "the Ministry of Telecommunications is working on the question".

"If we can establish a technical way in which people can use these services while at the same time criminal content is filtered out, then that will be done," he said.

"The experts say it is possible," he added.

Iran currently has a policy of filtering online content, which leaves popular websites such as Facebook, Twitter and YouTube inaccessible without the use of illegal software.

Internet censorship is a bone of contention between conservative hardliners and government members, including President Hassan Rouhani, who use social networks.

Official figures show that more than 30 million Iranians also use such applications.

Mr Rouhani has said that internet censorship is counter-productive. One study showed that 69% of young Iranian internet users use special software to get round the restrictions.