Australia has updated its travel advice for Indonesia, warning tourists could soon be charged for having sex outside marriage.

Indonesia is gearing up to pass new laws making consensual sex between unmarried adults a crime, and also making it illegal for unmarried couples to live together.

“A large number of laws may change and these will also apply to foreign residents and visitors, including tourists,” the Department of Foreign Affairs posted to the Smart Traveller website on Friday.

AAP