But the government’s broad shutdown of social media immediately after the Easter attacks, which were tied to eight attackers linked to a local affiliate of the Islamic State, was unusual. Access was shut down before any social-media-inspired violence was known to have taken place.

It is unclear how effective the ban has been at curbing unrest, or whether information spread on social media has contributed to recent reports of some attacks on Sri Lanka’s Muslims and refugees from Pakistan and Afghanistan.

After the bombings, Muslims, who comprise about 10 percent of the country’s population, have reported mobs attacking their homes and storefronts and threatening violence. Some of the blocked media outlets were sporadically accessible. And many Sri Lankans have simply used V.P.N.s, or virtual private networks, to circumvent the restrictions.

For days, Sri Lanka’s capital, Colombo, had been on lockdown, with nightly curfews and army personnel deployed along largely empty roads. Recently, life has started slowly returning to normal around Sri Lanka, but security forces said that they are continuing to comb the country in “house-to-house searches” for people linked to the six attacks on churches and hotels.

The Islamic State, in a statement over the weekend, claimed responsibility for three additional suicide bombings that occurred Friday during a raid by security forces on a hide-out of National Thowheeth Jama’ath, its local affiliate, which is believed to have carried out the Easter attacks.