"The pillory is a device made of a wooden or metal framework erected on a post, with holes for securing the head and hands, formerly used for punishment by public humiliation and often further physical abuse. The pillory is related to the stocks.
The word is documented in English since 1274 (attested in Anglo-Latin from c. 1189), and stems from Old French pellori (1168; modern French pilori, see below), itself from medieval Latin pilloria, of uncertain origin, perhaps a diminutive of Latin pila "pillar, stone barrier"." - (en.wikipedia.org 15.01.2020)
en