In theory it’s fine to tell others what your boundaries are with a list of people you don’t want to interact with.
But what people are missing is that a boundary is something that YOU enforce.
You can’t control other people’s behavior with a boundary.
Drawing a boundary means clarifying what behavior will cause you to withdraw your presence and interaction with another person.
You cannot use your boundaries to control others.