Both pornography and gambling are explicitly forbidden under Thai law, with the country’s Ministry of Information and Communication Technology especially concerned about blocking pornographic websites.
There haven’t been any documented cases of people being arrested and jailed for accessing porn that we know of. It is possible to use a VPN to access porn or gambling sites whilst in Thailand. We do, however, recommend our readers exercise caution and research Thai laws to fully understand what they’re getting into before deciding to embark on such a course of action.