Pennsylvania has legalized online gambling, including casino games and lottery tickets. It became the fourth state to do so, offering both gaming and lottery online, with municipalities allowed to prohibit casinos.