name and shame

Definition

verb
  • to publish the names of people who have broken the law or not fulfilled a duty, because it is in the public interest or as a punishment and deterrent
    Example The newspaper named and shamed the hospitals found to be unhygienic in the investigation.
Law-Glossary.com
www.law-glossary.com/definition/name-and-shame.html