Its members have scaled Mount Everest, walked on the moon and trekked to the farthest reaches of the Earth — but they don’t make Scotch whisky, so Johnnie Walker had better stop using their name.

That was the ruling from a Manhattan judge, who has shut the spigot on a $50 million line of Johnnie Walker scotch known as “Explorers’ Club,” finding that parent company Diageo was profiting off an association with the world-renowned, Manhattan-based club without permission.

Justice Charles Ramos ordered Diageo to take the “Explorers’ Club” liquor off the shelves of duty-free shops where it has been selling since late 2012.

“It is clear that Diageo’s adoption of the name of the Explorers’ Club was for the purpose of leading the public to believe that it was connected or affiliated with the club,” Ramos’ Aug. 4 decision says.

Johnnie Walker’s airport kiosks across the globe are modeled after the real Explorers’ Club’s old-world décor of leather couches, wood paneling and artifacts. The decorating similarities are “striking and unmistakable,” the club claimed in its February suit filed in Manhattan Supreme Court.

Diageo “has indisputably profited enormously from the purported unlawful and disputed use of the club’s name, to the tune of approximately $50 million in sales,” Ramos wrote in his 23-page ruling.

The vaunted, 120-year-old club, headquartered at an East 70th Street mansion, counts famous adventurers as members — from Sir Ernest Shackleton to Buzz Aldrin.

The nonprofit funds scientific research for adventurers and school kids alike. It owns the trademark on “The Explorers Club” name.

While Diageo tried to claim the Walker family “has a long-standing heritage of worldwide travel,” the club countered with a videotape of a salesman in a London duty-free shop this past winter saying that the whisky line was “actually made at the club’s New York headquarters.”

Ramos pooh-poohed Diageo’s claim at an April hearing.

“Other than the fact that Johnnie Walker seems to walk with large boots on, I’m not aware of him climbing Mount Everest,” he quipped.

Josh Schiller, the club’s attorney, applauded the joke.

He added, “This club is a treasured organization used to surmounting great challenges and could not sit by and have Diageo completely devalue the name it has built through over a century of historic accomplishment.”

Talks between Diageo and the club to license the name broke down, but the whisky collection — which includes a Trade Route Series with three whiskies labeled The Spice Road, The Gold Route and The Royal Route — launched anyway.

A spokeswoman for Diageo said, “We are extremely disappointed and disagree with the decision of Judge Ramos.”

“Diageo is waiting for the judge’s final order which will include the scope of the injunction.”

She added that Diageo plans to see if it can delay the order to stop using the name until an appeal has played out.

The Explorers Club is also pursuing a federal case against Diageo for monetary damages.