Do you think the way you dress should prohibit you from being allowed into certain spaces?

Anonymous
Do you think the way you dress should prohibit you from being allowed into certain spaces?

Examples:

1. There are all types of uniform rules that often prohibit students from attending class if they are violated
2. Many religious establishments have strict dress codes that they do not allow to be broken if you want to enter or even be a part of their religion
3. Some jobs will not allow you to work if you do not wear a uniform or the company dress code
4. Many restaurants will refuse service if you aren't dressed fancy

Updates
4 mo
Clarification: I'm not referring to dress codes that exist for employee safety or which are illegal, as in nudity in most public spaces.
Do you think the way you dress should prohibit you from being allowed into certain spaces?
10 Opinion