If there's any government officials reading this
You said religious reasons is the reason such countries banned gambling. You should know that your post does not count at all to them. They will prefer to just ban gambling unless they see the world more modern and think in another direction. And a lot of things may be considered and gambling may be restricted everywhere than maybe in tourist centres which is common in own or two Muslim countries now.
Some countries are not just with religion issue, some are just thinking the future of their citizen specially young ones.
There are lots of country who dont want to ban gambling casinos, this is due to the revenue/tax of the casino. We are talking about billions or trillion in a year tax.
If you have a good government that wants a good future for citizen, gambling online is being prohibited and make it legal in a casino hotel (offline)