Condemning something or banishing someone is proscription. For safety reasons, there's a proscription against carrying fireworks with you on an airplane. You'll have to leave those bottle rockets at home.
The term proscription was first used in ancient Rome for official banishment and other government-sanctioned punishments. The word comes from the Latin proscribere, "publish in writing," and historically proscriptions involved publishing the names of people considered enemies of the state. You can also use the word for things like your grandpa's proscription against candy or your school's proscription against wearing pajamas to class.