If a state has banned online casinos, then playing there is technically illegal, even if the site itself is based offshore. Some people still do it through international platforms, but it’s a legal gray area, you’re not likely to be targeted as a player, though the sites themselves are the ones operating outside the law.