Two men — one of whom is from New York — were sentenced to 10 days in jail after pleading guilty to trespassing on the cone of Old Faithful Geyser in Yellowstone National Park, and both have been banned from the park for five years.

Park employees and other witnesses saw two people on the geyser on Sept. 10 taking photos with their cellphones. At least one witness shared photos with park rangers, who cited the two defendants.

Eric Schefflin, 20, of Lakewood, Colorado, and Ryan Goetz. 25, of Woodstock, New York, were sentenced on Dec. 5 by U.S. Magistrate Mark Carman in Mammoth Hot Springs, park officials announced Thursday

"Visitors must realize that walking on thermal features is dangerous, damages the resource, and illegal," Chief Ranger Sarah Davis said in a statement.

The ground in hydrothermal areas is fragile and thin and there is scalding water just below the surface, park officials said. Visitors must always remain on boardwalks and exercise extreme caution.

Schefflin and Goetz were also ordered to pay $540 in restitution and were placed on unsupervised probation for five years.