Online betting has opened the door to an ugly and corrupting influence that erodes confidence in the integrity of sports.