This depends on where you live and what the gambling laws for that particular country or state is. In the USA, gambling is very restricted, so there may be many states who restrict playing online blackjack. But there is no current law that outright says its illegal.