Pillories and stocks were places in the Middle Ages for punishment where the crime was not particularly severe. The difference between a pillory and the stocks was that the criminal stood in a pillory, they sat in stocks.
People could then throw what they liked at the offender for a certain length of time. If they threw heavy objects there was a chance the offender might be injured or killed.