Stocks were a form of criminal punishment still utilized on Earth in the 17th century, consisting of two wooden boards with [[[hole]]s big enough for the arms and neck to fit through. Once locked, the guilty party was effectively immobilized.
In 2269, members of the crew of the USS Enterprise were taken prisoner by the Megans and put in the stocks to stand trial for the wrongs committed against them by other Humans. (TAS: "The Magicks of Megas-Tu")