JAKARTA (Reuters) - Zulfikar Fahd, an openly gay man, says he flew from Indonesia to Canada late last month and claimed asylum on grounds that he faced discrimination and persecution in his home country, which is poised to criminalise same-sex relations and consensual sex outside marriage.

Fahd, 30, who had worked in public relations, said he had already given up hope that the police would provide him protection against Islamic fundamentalists who have fomented hostility towards the lesbian, gay, bisexual, and transgender (LGBT) community in this Muslim-majority country, which is also the world's third-largest democracy.

Police have stood by while vigilantes have stormed "gay sex parties", and have themselves broken up gatherings at spas and hostels, charging some with violating strict pornography laws, and prompting many others to go underground. The authorities have also been clamping down online, blocking many LGBT sites or getting LGBT apps removed by host companies, including dating apps.

Until now, homosexuality has not been regulated by law in Indonesia, except in the ultra-conservative Aceh province where Islamic law bans same-sex relations.

But as lawmakers look to shore up conservative votes ahead of elections, parliament appears on the verge of revising the national criminal code to impose restrictions on same-sex relations and consensual sex between men and women outside marriage.

PRISON SENTENCES

Various drafts of the criminal code have appeared. The latest, though not necessarily the final one, seeks the prosecution of same-sex relations if an act is carried out in public, if there is evidence of abuse, or if a minor is involved.

Unmarried co-habiting couples or those engaging in extramarital sex could be prosecuted only if there is a complaint from a close relative.

Adultery is already a crime in Indonesia.

Under the proposals, those found guilty of a public act of gay sex could be sentenced to up to 18 months in prison, and up to nine years if there is evidence of abuse or video of the act is published. Heterosexual couples found living together without being married could face up to six months in prison, and two years if engaging in sex outside marriage.

Rights activists say the proposed rules could breach basic rights like privacy and could be subject to interpretation by vigilantes, the police and courts so that a party in someone's home could be deemed a public event.

"The police are not doing anything to protect us. In fact, they stand by and let things happen, almost as if they have a deal with the conservatives and vigilantes," Fahd told Reuters by phone from Ottawa. "If they enact this new law, this kind of vigilantism will be out of control."

Fahd says he has been granted temporary residency in Canada and has a final immigration hearing in May.

Cases before Canada’s Refugee Protection Division, where all refugee claims in the country are initially adjudicated, are private, said Immigration and Refugee Board spokeswoman Anna Pape.

RELOCATE TO THAILAND?

Concord Consulting, a Jakarta-based risk consultancy, said in a recent report that Indonesia has much to lose from allowing homophobic attitudes to take hold of society, including potentially foreign investment, donor assistance, and vital tourism earnings.

Travel websites aimed at LGBT holidaymakers indicate the gay scene remains vibrant on the resort island of Bali, the cornerstone of Indonesia's tourism industry. But some in the industry fear the new rules could deter gay travellers.

"It will probably force them to go to places like Thailand instead of coming to Bali," said the owner of a Bali guesthouse that caters to LGBT tourists. The foreign owner, who declined to be identified due to the sensitivity of the matter, said he would try to relocate his business to Thailand.

Thailand, a predominantly Buddhist country, is home to a liberal LGBT scene and has launched marketing campaigns aimed at attracting gay tourists. The Tourism Authority of Thailand has a gothaibefree.com website aimed at LGBT travellers. It says the Thai people are tolerant and respectful of the LGBT community and also offers discounts for hotels and spas.

In Indonesia that is far from the approach. A parliamentary commission drawing up changes to the Dutch colonial-era criminal code has been consulting with the public and taking the opinions of religious scholars, legal experts, and rights groups.

Its deliberations come against a backdrop of rising anti-LGBT rhetoric, including from senior officials, and a string of vigilante and police raids on places where gay people have gathered.

"MENTAL ILLNESS"

A recent survey found that nearly 90 percent of Indonesians who understand the term 'LGBT' feel threatened by the community, while the Indonesian Psychiatric Association and the Health Ministry state in internal documents seen by Reuters that being LGBT is a mental illness.

Defence Minister Ryamizard Ryacudu has branded homosexuality a national security threat on the basis that it "is a kind of modern warfare that undermines the country's sovereignty".

Last month, 12 transgender women in Aceh were detained by police and forced to cut their hair and dress in 'masculine' clothes, sparking outrage from rights groups.

Most political parties support the changes being proposed, particularly those that outlaw gay sex.

"If someone dares to disagree, does that person want to risk not being elected again?" said Arsul Sani, a lawmaker from the United Development Party, an Islamic party, who has been involved in drafting revisions to the law.

Most Indonesians adhere to a moderate form of Islam under an officially secular system, but there has been a rise of hardline, politicized Islam in recent years, and it has moved from the fringe to the centre of politics.

Islamist groups led mass rallies last year to unseat the then governor of Jakarta, a Christian. Basuki Tjahaja Purnama had said political rivals were deceiving people by using a verse in the Koran to say Muslims should not be led by a non-Muslim. He apologised for the comments, but was later jailed for two years for blasphemy.

Critics say the creeping Islamisation of politics is fostering moral conservatism as Indonesia heads into crucial provincial polls in June and a presidential election in 2019.

"The hateful rhetoric against (the LGBT) community that is being cultivated seemingly for cynical political purposes will only deepen their suffering and create unnecessary divisions," U.N. human rights chief Zeid Ra'ad Al Hussein said when visiting Indonesia this week. He said he raised the issue with President Joko Widodo.

SOME DISSENTING VOICES

There are some dissenting voices as the legislative revisions are nudged forward, among them parliament deputy speaker Fahri Hamzah, who has been lobbying lawmakers and the government to apply the brakes.

"I'm warning them on the dangers of criminalisation of our privacy too much. It endangers our future, our freedom and also our economy," he told Reuters.

"You don't regulate the bedroom of the people."

He accused Widodo of being "weak on the issue" and, instead of speaking up, relying on the lobbying of liberal media and non-governmental organisations.

Top officials, including the president, have said that while LGBT people should not face discrimination, Indonesia's cultural and religious norms do not accept the LGBT movement.

A presidential spokesman declined to comment, but a government representative involved in the deliberations said efforts were underway to protect privacy.

"The state cannot enter the private realm. It can only get involved if what people do disturbs public order," said Enny Nurbaningsih of the law and human rights ministry.

Fahd, who is originally from East Java, says he has lost faith in the protection promised to the nation's people in the Indonesian constitution. "I want the Indonesian government to see that we have our voice. It's like I'm saying to them, 'I don't need you: there are other countries that accept me for who I am.'"

(Additional reporting by Ed Davies, Tom Allard, and Andrew Mangelsdorf and Amy Sawitta Lefevre in BANGKOK and Anna Mehler Paperny in TORONTO.Writing by John Chalmers; Editing by Martin Howell)