WhatsApp was forced offline in Brazil yesterday after Facebook failed to provide a court with chat logs related to a criminal investigation – only for the block to be lifted hours later.

The blocking order by Brazilian judge Daniela Barbosa came after Facebook argued that it could not provide the court with the requested data since all messages relayed through the service are end-to-end encrypted.

Barbosa apparently took issue with the nature of the response, accusing Facebook of treating the country like a "banana republic" and criticizing WhatsApp for replying to the court via email and in English, "as if this was the official language of this country." She then ordered the company to pay $50,000 per day until it complied with the court order to release the information.

However, in a matter of hours, the judge's order was struck down by the country's Supreme Court, which ruled that the lower court's order to ban WhatsApp was unreasonable and disproportionate. As TechCrunch notes, the ruling suggests Brazil's highest court favors an open internet, even if that means embracing encryption.

This is the fourth time a judge has ordered that WhatsApp be taken offline in the country, only for access to be reinstated soon after. The last order occurred in May and blocked the messaging service in Brazil for 72 hours, affecting over 100 million people.

"In recent months, people from all across Brazil have rejected judicial blocks of services like WhatsApp," said a WhatsApp spokesperson. "Indiscriminate steps like these threaten people's ability to communicate, to run their businesses, and to live their lives. As we've said in the past, we cannot share information we don't have access to."