Yahoo Inc. is banning employees from playing in paid fantasy-sports contests, following similar moves by the two biggest daily fantasy-sports sites in the U.S.

Such sites run online contests in which people draft virtual teams of professional athletes and compete against each other based on the athletes’ real-world performances.