Plagued by leaks during its recently concluded seventh season, “Game of Thrones” is resorting to an old TV trick to preserve secrecy about next season’s series finale.

The producers will shoot several different endings of the final episode, Casey Bloys, HBO’s programming president, said at a recent event.

“You have to do that on a long show. Because when you’re shooting something, people know,” he said, according to a local report. “So they’re going to shoot multiple versions so that there’s no real definitive answer until the end.”