Skip to main content
WAG

Indonesia · City Guide

Yogyakarta

Yogyakarta after the KUHP: what the new penal code, Satpol PP, and Jogja's post-Sarkem reality mean for adult travelers.

City facts

Population
3.8M
Region
Indonesia
Area
3K km²
Read more about Yogyakarta on Wikipedia →

Overview

Yogyakarta — locally shortened to Jogja — is the cultural capital of Java and the seat of Indonesia's last politically active sultanate. The Special Region (Daerah Istimewa Yogyakarta, DIY) is governed by Sultan Hamengkubuwono X, who doubles as governor under a 2012 law that formalizes the hereditary arrangement. That matters for travelers because Jogja is simultaneously a UNESCO-listed heritage city, a university town of roughly 300,000 students across Gadjah Mada, UII, UGM and dozens of smaller campuses, and a conservative Javanese-Muslim society where public morality is enforced more actively than in Bali.

The city sits about an hour from Borobudur and Prambanan, which drives its tourism economy, but its nightlife culture is muted by Indonesian standards. There are no formal red-light districts operating openly in 2026 — the historic Pasar Kembang (Sarkem) and Bong Suwung zones near Tugu station were dismantled in stages between 2016 and 2020 under successive Satpol PP operations. What remains is dispersed, informal, and largely invisible to short-term visitors. This guide is written for adult travelers who want to understand the legal, health, and safety landscape before arriving, not to promote or locate any specific activity.

Legal Status

The revised Indonesian Criminal Code (KUHP), passed in December 2022 as Law No. 1/2023, entered force on 2 January 2026 and now applies in Yogyakarta. Two provisions are directly relevant to adult travelers:

  • Article 411 criminalizes extramarital sexual intercourse, punishable by up to one year in prison. Crucially, it is a delik aduan (complaint-based offense): only a spouse, parent, or child of one of the parties can file. Hotel staff, neighbors, and police cannot initiate charges on their own.
  • Article 412 criminalizes cohabitation between unmarried persons, up to six months, also complaint-based with the same restricted standing, plus a village head (kepala desa) in limited circumstances.

Sex work itself is not criminalized at the federal level. However, Articles 296 and 506 of the old KUHP (retained in substance in the new code as Articles 421 and 511) criminalize procuring, pimping, and profiting from the prostitution of others — the third-party framework is what enforcement actually targets. Yogyakarta Special Region has additional Perda (regional regulation) No. 18/1954 and municipal ordinances against soliciting and against "acts contrary to decency in public." Satpol PP uses these Perda for street sweeps rather than the KUHP.

Photographing, filming, or sharing sexual images of another person without consent is prosecutable under the 2008 Anti-Pornography Law and the 2016 ITE Law amendments. Penalties are severe and have been applied to foreigners. Any sexual conduct involving anyone under 18 falls under the 2014 Child Protection Law revisions (UU 35/2014), with sentences up to 15 years and chemical castration provisions added in 2016.

Practical Safety

Yogyakarta is one of the safer major Indonesian cities for violent crime, but property crime is common and rising. Motorbike-mounted bag snatching (jambret) along Jalan Malioboro, Jalan Prawirotaman, and the ring road after dark is the most frequent incident type reported to consulates. Carry bags on the side away from the street, and do not use your phone while walking near curbs.

The Malioboro pedestrianization completed in 2022 pushed becak and andong traffic to parallel streets; the pedestrian corridor itself is well-lit and patrolled until roughly midnight. Side alleys (gang) off Sosrowijayan and Pasar Kembang are darker and have a persistent low-level presence of touts, informal alcohol sellers, and pickpockets — situational awareness matters more than avoidance.

Gunung Merapi, 30 km north, is one of Indonesia's most active volcanoes. Check BPPTKG status before booking any north-slope excursions; the alert level has cycled between 2 and 3 for most of the past decade. Earthquakes are frequent but usually minor; the 2006 Bantul quake (Mw 6.3) killed over 5,700 and reshaped local building codes.

Alcohol is legal but taxed heavily and less available than in Bali. Convenience stores generally do not sell it; licensed supermarkets, hotel bars, and a limited number of dedicated venues do. Home-brewed arak and ciu sold cheaply in informal settings have caused repeated methanol-poisoning mass-casualty events in Java — including a cluster in Sleman in 2018 that killed more than 30. Stick to sealed, branded product.

Health Considerations

Indonesia's HIV epidemic remains concentrated but is growing. UNAIDS estimated roughly 540,000 people living with HIV nationally in 2024, with prevalence among female sex workers around 5.3% and substantially higher among men who have sex with men and transgender women in urban Java. Yogyakarta-specific surveillance published by the DIY Health Office shows detected cases rising year-on-year, driven partly by expanded testing.

Condoms are legal, sold in convenience stores (Alfamart, Indomaret) and pharmacies (Kimia Farma, Guardian, Century) without restriction. Emergency contraception (Postinor) is available at pharmacies, sometimes requiring a brief consultation. PrEP was rolled out through selected clinics under a Ministry of Health pilot expanded in 2024; access for foreigners is inconsistent and typically requires paying cash at a private clinic.

For STI testing and treatment, notable options include Klinik Victory Plus (LGBT-friendly, HIV-focused, on Jalan Kaliurang), RS Sardjito (public teaching hospital with a VCT unit), and private clinics such as RS Panti Rapih and RS Bethesda. Puskesmas (community health centers) in every kecamatan offer free HIV testing but limited English. Bring your passport for any hospital visit; travel insurance is strongly recommended, as private hospitals require deposit or credit-card guarantee up front.

Dengue is endemic; the 2024 rainy-season outbreak stressed Sardjito's wards. Use repellent with 20%+ DEET or picaridin. Rabies is present in Java but Yogyakarta is not a hotspot; treat any mammal bite as urgent regardless.

Common Scams

The most durable Jogja scam is the batik gallery hustle: a friendly local (often near the Kraton or Taman Sari) claims a "special one-day government exhibition" is closing that afternoon and walks you to a shop where you're pressured to buy heavily marked-up "student cooperative" batik. There is no such exhibition. Any unsolicited approach steering you off your intended route deserves suspicion.

Second is the silver-workshop overcharge in Kotagede, where becak drivers receive commissions of 20–40% baked into inflated prices. Buying direct at established houses (HS Silver, Ansor's, Borobudur Silver) with posted prices is safer.

Third is the ATM-skimmer cluster that periodically appears on Malioboro and around Tugu station. Prefer ATMs inside bank branches (BCA, Mandiri, BNI) during business hours. Enable card notifications before you travel.

In the adult context, the pattern reported most often to consulates is the hotel-room shakedown: a companion arrives at a guesthouse, then a person claiming to be a boyfriend, brother, or local official appears demanding money to avoid a "morality report." This is extortion, not enforcement — the KUHP requires spouse/parent/child standing, and Perda enforcement is a Satpol PP function that does not operate via cash payoffs to third parties. Refuse, lock the door, and call your embassy duty line.

Police & Enforcement Reality

Three separate bodies operate in Jogja and travelers routinely confuse them:

  • Polri (national police), in dark-brown uniforms, handles criminal matters. Tourist reports go to Polresta Yogyakarta on Jalan Reksobayan or the tourist police post on Malioboro.
  • Satpol PP (civil service police), in khaki, enforces Perda: street vending, public order, morality regulations. They conduct periodic raids (razia) on guesthouses, karaoke venues, and rented boarding houses (kos). They cannot arrest for KUHP offenses without Polri present.
  • Densus/Brimob and TNI are visible around sensitive dates (Idul Fitri, Independence Day, election periods) but do not routinely deal with tourists.

Ormas (mass organizations) such as Front Jihad Islam and successors to the disbanded FPI occasionally conduct sweeping operations around Ramadan targeting venues serving alcohol or perceived immorality. These are unlawful but police response is inconsistent; venues in Sleman and near university clusters have been hit repeatedly. Avoid entertainment venues in the last week of Ramadan.

Bribes solicited by police for minor traffic offenses (no international driving permit, no helmet) are common. The published fine for driving without an SIM is Rp 250,000 under UU 22/2009; anything demanded in cash roadside above that is a shakedown. Requesting to pay at the station (bayar di kantor) usually ends the interaction.

Neighborhood Overview

Malioboro / Sosrowijayan: The historic tourist spine. Sosrowijayan Wetan and Kulon (east and west sides of the tracks) hold the oldest backpacker guesthouses. Sarkem (Pasar Kembang), immediately north, was Jogja's tolerated red-light zone for decades before the 2016–2020 closures. Today the area is a mix of budget guesthouses, warungs, and residential kampung with a lingering informal presence.

Prawirotaman: The mid-range expat and digital-nomad district south of the Kraton, sometimes called "Gang Cendana" or "Little Bali." Cafes, coworking, boutique hotels; heavier foreign presence, correspondingly higher-priced everything.

Tirtodipuran & Mantrijeron: Adjacent to Prawirotaman, quieter, more residential, several small design-forward hotels.

Kotabaru: Colonial-era grid north of the railway, Dutch bungalows, mid-range business hotels, closer to the university belt.

Depok / Seturan / Babarsari (Sleman): The northern university zone. Denser student nightlife than central Jogja — karaoke, live-music venues, late warungs. Babarsari has a history of periodic gang and ethnic-tension flareups (most recently a serious incident in 2022) and is not recommended after midnight for visitors unfamiliar with the area.

Kraton & Taman Sari: The palace complex and its surroundings. Cultural, quiet after dark, heavy scam presence during daylight tourism hours.

Local Trafficking Indicators

Indonesia has been ranked Tier 2 in the US State Department's Trafficking in Persons Report for most of the past decade, with domestic trafficking outweighing cross-border cases. Central Java and Yogyakarta are net source and transit provinces: young women recruited from rural Gunungkidul, Kulon Progo, and neighboring Central Java regencies are moved to Jakarta, Batam, or Kalimantan. Jogja itself has documented cases of debt-bonded work in karaoke and spa businesses, particularly involving Rohingya, Filipina, and rural Javanese women.

Red flags travelers should recognize and never engage with: workers who cannot leave a premises, whose IDs are held by an employer, who are visibly under 18 or whose age is evasively answered, who appear coerced or medicated, or who do not speak the local language and have no independent means of communication. Any suspicion of a minor should be reported to KPAI (Komisi Perlindungan Anak Indonesia) at 129 or to your embassy. ECPAT Indonesia maintains a reporting channel at ecpatindonesia.org.

Getting Around

Gojek and Grab dominate short-hop transport; both apps work reliably in the DIY. Motorbike (GoRide, GrabBike) is fastest and cheapest, roughly Rp 10,000–20,000 across the city center; car (GoCar, GrabCar) is safer at night and in rain. Argo-metered taxis (Bluebird) are available but rare compared to Jakarta.

TransJogja buses run fixed routes on flat fares (Rp 3,600 as of the 2024 revision) and reach the airport, but frequency drops after 21:00. The new YIA airport in Kulon Progo is 45 km west of the city — the airport rail link (KA Bandara YIA) from Tugu station is the most reliable option, roughly 40 minutes.

Renting a motorbike is common (Rp 70,000–120,000/day) but requires an international driving permit with the motorcycle endorsement to be lawful. Police checkpoints on Jalan Solo and the ring road specifically target foreign renters. Helmet is mandatory. Third-party insurance is not typically included; hospital costs for a scooter crash — the number-one cause of foreign tourist injury in Indonesia — will be paid out of pocket without travel insurance.

Where to Stay

Guesthouse policy on unmarried co-guests varies. Under the KUHP the offense is complaint-based, so the practical constraint is house policy, not law. International-branded hotels (Accor, IHG, Marriott) do not ask. Mid-range and boutique properties in Prawirotaman and Tirtodipuran generally do not either. Traditional guesthouses (losmen, penginapan) in Sosrowijayan and around the Kraton sometimes require both guests to show ID and be registered; some refuse mixed unmarried bookings outright. Booking.com and Agoda listings usually state the policy.

Kos (monthly-rental boarding houses), sometimes booked short-term through informal channels, have historically been targeted in Satpol PP razia because they operate outside hotel licensing. Not recommended for short stays.

Every guest is required to be registered with the local RT (neighborhood unit) within 24 hours for stays over that period; hotels handle this automatically, informal rentals may not.

Resources

  • Tourist Police (Polresta Yogyakarta): Jalan Reksobayan, 24-hour post on Malioboro. Emergency 110.
  • Ambulance: 118 or 119.
  • RS Sardjito: Public teaching hospital, VCT unit, best trauma capability in the region.
  • RS Panti Rapih / RS Bethesda: Private hospitals with international-patient desks.
  • Klinik Victory Plus: HIV-focused, LGBT-friendly, referral network.
  • KPA DIY (Komisi Penanggulangan AIDS): Regional AIDS commission, testing and outreach coordination.
  • PKBI Yogyakarta: Indonesian Planned Parenthood affiliate, sexual health services.
  • KPAI child protection hotline: 129.
  • SAPDA / Rifka Annisa: Local women's crisis and legal aid centers.
  • ECPAT Indonesia: Trafficking and child exploitation reporting, ecpatindonesia.org.
  • Consular contacts: Nearest US, UK, Australian, and most EU consulates are in Jakarta or Bali; register your trip via your foreign ministry's travel advisory service before arrival.

Common questions about Yogyakarta

Is sex work illegal in Yogyakarta?

Sex work itself is not criminalized at the Indonesian federal level. However, Articles 421 and 511 of the revised criminal code (retaining the substance of the old Articles 296 and 506) criminalize procuring, pimping, and profiting from the prostitution of others, which is what enforcement actually targets. Yogyakarta Special Region also has Perda (regional regulation) No. 18/1954 and municipal ordinances against soliciting and public indecency, which Satpol PP uses for street sweeps rather than the national criminal code.

Does Indonesia's new criminal code (KUHP) mean tourists can be arrested for extramarital sex in Yogyakarta?

The revised KUHP (Law No. 1/2023), in force since 2 January 2026, does criminalize extramarital sexual intercourse under Article 411, with penalties of up to one year in prison. Crucially, it is a delik aduan, a complaint-based offense that only a spouse, parent, or child of one of the parties can file, meaning hotel staff, neighbors, or police cannot initiate charges on their own.

Does Yogyakarta still have a red-light district like Sarkem?

No formal red-light districts operate openly in Yogyakarta as of 2026. The historic Pasar Kembang (Sarkem) and Bong Suwung zones near Tugu station were dismantled in stages between 2016 and 2020 under successive Satpol PP operations, and what remains of any informal scene is dispersed and largely invisible to short-term visitors.

What is the hotel-room shakedown scam reported in Yogyakarta, and what should travelers do?

In this scam, a companion arrives at a guesthouse and then someone claiming to be a boyfriend, brother, or local official appears demanding money to avoid a "morality report." This is extortion rather than legitimate enforcement, since the KUHP requires spouse/parent/child standing to file a complaint and Perda enforcement is a Satpol PP function that does not operate via cash payoffs to third parties. The recommended response is to refuse, lock the door, and call the embassy duty line.

Where can travelers get condoms or STI testing in Yogyakarta?

Condoms are legal and sold without restriction at convenience stores like Alfamart and Indomaret and at pharmacies including Kimia Farma, Guardian, and Century. For STI testing and treatment, notable options include Klinik Victory Plus (LGBT-friendly, HIV-focused, on Jalan Kaliurang), RS Sardjito (a public teaching hospital with a VCT unit), and private clinics such as RS Panti Rapih and RS Bethesda, while Puskesmas community health centers in every kecamatan offer free HIV testing but with limited English support.

What are the most common scams travelers encounter in Yogyakarta?

The most durable is the batik gallery hustle, where a friendly local claims a "special one-day government exhibition" is closing and steers travelers to a shop selling heavily marked-up "student cooperative" batik. Another is the silver-workshop overcharge in Kotagede, where becak drivers take 20-40% commissions baked into inflated prices, better avoided by buying direct at established houses like HS Silver, Ansor's, or Borobudur Silver. ATM skimmers also periodically appear on Malioboro and around Tugu station, so using ATMs inside bank branches such as BCA, Mandiri, or BNI is safer.