Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

BANGKOK, Thailand — One of Southeast Asia’s strictest Islamic enclaves just got a lot more hostile to same-sex couples.

In Aceh, the most orthodox corner of Muslim-majority Indonesia, gay sex is now punishable by 100 lashes. On a public stage. By a cane-wielding figure clad head-to-ankles in dark brown robes (with a yellow decorative fringe).

The sting of a rattan cane is only part of the punishment. Aceh’s officials admit the primary objective is shame. That’s why they invite crowds to jeer and gawk and excitedly count off the lashings meted out to men and women accused of petty crimes.

Sound archaic?

That’s the point.

The lashings are administered under Shariah law, a moral code dictated in the Quran that dates back the seventh century. Aceh’s modern-day whipping sessions are meant to play out as they did in ancient times — only with teenagers recording the beatings on their iPhones.

In the 12th century, Aceh was among the first places of Asia to absorb Islam from seafaring Arabs. Today, the far-flung province remains proudly orthodox. It’s the only territory in Indonesia that enforces Shariah law, which forbids alcohol, premarital romance and women in tight jeans.

Under a newly revised interpretation of Shariah law in Aceh, gay sex is now explicitly criminalized and punishable by 100 lashes or 100 months in jail. Officials can also demand 1,000 grams of pure gold (roughly $39,000) if they catch same-sex couples in the act. Male-on-male anal sex and women “rubbing body parts for stimulation” are explicitly outlawed.

In recent years, Aceh’s officials have ramped up their anti-gay rhetoric. A popular deputy mayor has proclaimed homosexuality a “social disease.” A former Shariah police chief noted that, technically, lesbians can be beheaded and tossed in the sea.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

"It’s not about pain. It’s about humiliation"

The fact that officials restrain from Shariah’s harshest punishments — like stoning — is cited as proof that Aceh’s take on Islamic punishment is actually lenient.

Public lashings in Aceh typically don’t leave lawbreakers crippled and gushing blood. As Aceh’s former Shariah police chief Khalidin previously explained to GlobalPost: “It’s not about pain. It’s about humiliation.”

Still, some who are sentenced to lashings refuse to surrender their pride. Instead, they puff out their chests defiantly as they’re being lashed — all to prove they’ve got the guts to take a beating.

One hulking man whipped for gambling in September stepped on stage, potbelly exposed, and tried to yank away the cane while being lashed. The crowd roared with approval.

Other caning sentences are far more degrading.

Earlier this year, eight male vigilantes stormed into a 25-year-old woman’s home and caught her with a married man. Then they gang raped her and doused her body in sewage. Though the men were charged with rape in criminal court, according to the Jakarta Globe, authorities decided the rape victim was still guilty of infidelity and subject to a public whipping.

A hooded official (right, wearing brown) canes a man in Banda Aceh, Indonesia, for gambling on September 19. CHAIDEER MAHYUDDIN / AFP - Getty Images

In Aceh, these appeals to hard-line Islamic purity are similar to U.S. politicians extolling a return to “family values.” Rhetoric about old-fashioned religious morality appeal to the base. In recent years, Islamic authorities have openly complained that Aceh’s existing interpretation of Shariah only covers unmarried males and females in close proximity — leaving a loophole allowing for gay romance.

That loophole is now closed.

Many among the current crop of leaders trace their roots to Free Aceh Movement, a separatist guerrilla faction that fought the Indonesian army for three decades.

In 2001, the Indonesian government granted Shariah law to Aceh in hopes of winning over Islamists who were otherwise sympathetic to the rebellion. After the guerrillas negotiated for peace in 2005, they transformed into politicians and retained the popular Islamic laws.

Indonesia’s human rights advocates are deeply horrified at the harsh codes against homosexuality. It’s “as if we’re going back hundreds of years,” according to Chika Noya, an Indonesian gay rights activist interviewed by the Jakarta Globe. Another activist insisted the punishment belongs in the Middle Ages.

“Gays and lesbians are human beings also,” said a female Indonesian lecturer from Aceh in an interview with GlobalPost. “Who are we to go against God’s creations?”

But she conceded that “those who are against it are the minority.” Hardliners have become so emboldened in Aceh, she said, that publishing her name, employer and pro-gay stance could bring on serious repercussions.

“It is hard for people like me in this community to say openly that we’re against it,” the lecturer said. “Because people will say we’re against what the holy book and God says ... and that means, in their interpretation, they can kill us.”

This story originally appeared at GlobalPost.

More from GlobalPost: