Name and shame

To name and shame is to

To name and shame is to "publicly say that a person, group or business has done something wrong". It is a form of public shaming used to rally popular opinion against and in turn discourage certain kinds of behavior or enterprises. The practice occurs both at the domestic and the international levels where naming and shaming is often used to denounce unfair business practices or human rights violations.
Read article on Wikipedia