When no laws exist specifically banning online gambling or directly legalizing it that country may be described as being in a gray area: The activity is neither legal nor illegal. When these activities are legalized and codified they are also usually taxed and regulated.
Many countries only have laws that apply to land-based gambling.