Both land-based and online gambling are banned in Indonesia under Article 303 of the country's criminal code and punishable by up to four years in prison.
(Source) Most of the popular online casinos in Bali are blocked by the government. But due to the blanket approach of the government as mentioned above, there are a number of international online businesses such as Bovada, Betonline.ag and BetOnline which are flourishing in Bali.